From 558203e2bb34b5b669f085069135b1a999fa86c3 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 2 Jun 2017 17:56:23 +0200 Subject: [PATCH] Rename "Remove no constructor" to "Remove constructor call"; fix test --- .../jetbrains/kotlin/idea/quickfix/RemoveNoConstructorFix.kt | 2 +- .../createSecondaryConstructor/delegatorToSuperCallNoClass.kt | 1 + idea/testData/quickfix/removeNoConstructor/basic.kt | 2 +- idea/testData/quickfix/removeNoConstructor/basic.kt.after | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/quickfix/RemoveNoConstructorFix.kt b/idea/src/org/jetbrains/kotlin/idea/quickfix/RemoveNoConstructorFix.kt index 11522aa1f16..a1f364cc91d 100644 --- a/idea/src/org/jetbrains/kotlin/idea/quickfix/RemoveNoConstructorFix.kt +++ b/idea/src/org/jetbrains/kotlin/idea/quickfix/RemoveNoConstructorFix.kt @@ -28,7 +28,7 @@ import org.jetbrains.kotlin.psi.psiUtil.getStrictParentOfType class RemoveNoConstructorFix(constructor: KtValueArgumentList) : KotlinQuickFixAction(constructor) { - override fun getText() = "Remove no constructor" + override fun getText() = "Remove constructor call" override fun getFamilyName() = text diff --git a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/delegatorToSuperCallNoClass.kt b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/delegatorToSuperCallNoClass.kt index 8af8675c455..5c53b0c7186 100644 --- a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/delegatorToSuperCallNoClass.kt +++ b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/delegatorToSuperCallNoClass.kt @@ -1,5 +1,6 @@ // "Create secondary constructor" "false" // ERROR: This class does not have a constructor +// ACTION: Remove constructor call interface T { diff --git a/idea/testData/quickfix/removeNoConstructor/basic.kt b/idea/testData/quickfix/removeNoConstructor/basic.kt index 3af6742b6be..f59c22a5a04 100644 --- a/idea/testData/quickfix/removeNoConstructor/basic.kt +++ b/idea/testData/quickfix/removeNoConstructor/basic.kt @@ -1,4 +1,4 @@ -// "Remove no constructor" "true" +// "Remove constructor call" "true" interface Base class Derived : Base() \ No newline at end of file diff --git a/idea/testData/quickfix/removeNoConstructor/basic.kt.after b/idea/testData/quickfix/removeNoConstructor/basic.kt.after index e4918561501..8d01f2be43f 100644 --- a/idea/testData/quickfix/removeNoConstructor/basic.kt.after +++ b/idea/testData/quickfix/removeNoConstructor/basic.kt.after @@ -1,4 +1,4 @@ -// "Remove no constructor" "true" +// "Remove constructor call" "true" interface Base class Derived : Base \ No newline at end of file