diff --git a/idea/resources/inspectionDescriptions/CanBePrimaryConstructorProperty.html b/idea/resources/inspectionDescriptions/CanBePrimaryConstructorProperty.html index 680255d8b8c..8cdb886d8f3 100644 --- a/idea/resources/inspectionDescriptions/CanBePrimaryConstructorProperty.html +++ b/idea/resources/inspectionDescriptions/CanBePrimaryConstructorProperty.html @@ -1,5 +1,5 @@
-This inspection reports properties which are explicitly assigned by constructor arguments and can be declared directly in constructor instead. +This inspection reports properties which are explicitly assigned to constructor parameters and can be declared directly in constructor instead. \ No newline at end of file diff --git a/idea/src/org/jetbrains/kotlin/idea/inspections/CanBePrimaryConstructorPropertyInspection.kt b/idea/src/org/jetbrains/kotlin/idea/inspections/CanBePrimaryConstructorPropertyInspection.kt index 6ceda4bcb34..a95e75ebc08 100644 --- a/idea/src/org/jetbrains/kotlin/idea/inspections/CanBePrimaryConstructorPropertyInspection.kt +++ b/idea/src/org/jetbrains/kotlin/idea/inspections/CanBePrimaryConstructorPropertyInspection.kt @@ -58,7 +58,7 @@ class CanBePrimaryConstructorPropertyInspection : AbstractKotlinInspection() { holder.registerProblem(holder.manager.createProblemDescriptor( nameIdentifier, nameIdentifier, - "Property is explicitly assigned by parameter ${assignedDescriptor.name}, can be declared directly in constructor", + "Property is explicitly assigned to parameter ${assignedDescriptor.name}, can be declared directly in constructor", ProblemHighlightType.GENERIC_ERROR_OR_WARNING, isOnTheFly, MakeConstructorPropertyFix(property, assignedParameter) diff --git a/idea/testData/inspections/canBePrimaryConstructorProperty/inspectionData/expected.xml b/idea/testData/inspections/canBePrimaryConstructorProperty/inspectionData/expected.xml index bb71e38ae4a..5008e7dac64 100644 --- a/idea/testData/inspections/canBePrimaryConstructorProperty/inspectionData/expected.xml +++ b/idea/testData/inspections/canBePrimaryConstructorProperty/inspectionData/expected.xml @@ -5,7 +5,7 @@