Minor: Fix spelling of intention text
#KT-9639 Fixed
This commit is contained in:
@@ -52,10 +52,7 @@ import org.jetbrains.kotlin.psi.psiUtil.startOffset
|
|||||||
import org.jetbrains.kotlin.utils.addToStdlib.singletonList
|
import org.jetbrains.kotlin.utils.addToStdlib.singletonList
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
class KotlinCreateTestIntention : JetSelfTargetingRangeIntention<KtClassOrObject>(
|
class KotlinCreateTestIntention : JetSelfTargetingRangeIntention<KtClassOrObject>(KtClassOrObject::class.java, "Create test") {
|
||||||
KtClassOrObject::class.java,
|
|
||||||
CodeInsightBundle.message("intention.create.test")
|
|
||||||
) {
|
|
||||||
override fun applicabilityRange(element: KtClassOrObject): TextRange? {
|
override fun applicabilityRange(element: KtClassOrObject): TextRange? {
|
||||||
if (element.isLocal()) return null
|
if (element.isLocal()) return null
|
||||||
if (element is KtEnumEntry) return null
|
if (element is KtEnumEntry) return null
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
// "Make 'A' abstract" "false"
|
// "Make 'A' abstract" "false"
|
||||||
// ERROR: <html>Class 'X' must override <b>public</b> <b>open</b> <b>fun</b> foo(): kotlin.Unit <i>defined in</i> X<br />because it inherits many implementations of it</html>
|
// ERROR: <html>Class 'X' must override <b>public</b> <b>open</b> <b>fun</b> foo(): kotlin.Unit <i>defined in</i> X<br />because it inherits many implementations of it</html>
|
||||||
// ACTION: Create Test
|
// ACTION: Create test
|
||||||
// ACTION: Make internal
|
// ACTION: Make internal
|
||||||
// ACTION: Make private
|
// ACTION: Make private
|
||||||
// ACTION: Move 'X' to separate file
|
// ACTION: Move 'X' to separate file
|
||||||
|
|||||||
idea/testData/quickfix/createFromUsage/createClass/delegationSpecifier/classDelegatorToSuperclass.kt
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
// "Create class 'A'" "false"
|
// "Create class 'A'" "false"
|
||||||
// ACTION: Create interface 'A'
|
// ACTION: Create interface 'A'
|
||||||
// ACTION: Create Test
|
// ACTION: Create test
|
||||||
// ERROR: Unresolved reference: A
|
// ERROR: Unresolved reference: A
|
||||||
package p
|
package p
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
// "class org.jetbrains.kotlin.idea.quickfix.AddOpenModifierToClassDeclarationFix" "false"
|
// "class org.jetbrains.kotlin.idea.quickfix.AddOpenModifierToClassDeclarationFix" "false"
|
||||||
// ERROR: This type is final, so it cannot be inherited from
|
// ERROR: This type is final, so it cannot be inherited from
|
||||||
// ACTION: Create Test
|
// ACTION: Create test
|
||||||
import testPackage.*
|
import testPackage.*
|
||||||
|
|
||||||
class foo : <caret>JavaClass() {}
|
class foo : <caret>JavaClass() {}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// "Cast expression 'Foo<Number>()' to 'Foo<Int>'" "false"
|
// "Cast expression 'Foo<Number>()' to 'Foo<Int>'" "false"
|
||||||
// ACTION: Create Test
|
// ACTION: Create test
|
||||||
// ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>Foo<kotlin.Int></td></tr><tr><td>Found:</td><td>Foo<kotlin.Number></td></tr></table></html>
|
// ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>Foo<kotlin.Int></td></tr><tr><td>Found:</td><td>Foo<kotlin.Number></td></tr></table></html>
|
||||||
class Foo<T>
|
class Foo<T>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
// "Remove 'val' from parameter" "false"
|
// "Remove 'val' from parameter" "false"
|
||||||
// ACTION: Make internal
|
// ACTION: Make internal
|
||||||
// ACTION: Make private
|
// ACTION: Make private
|
||||||
// ACTION: Create Test
|
// ACTION: Create test
|
||||||
class C(<caret>val x: String) {
|
class C(<caret>val x: String) {
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user