Idea: add quick fix for replacing usages of deprecated "INSTANCE$" field
This commit is contained in:
committed by
Michael Bogdanov
parent
d630c25f7d
commit
f4ef9647b1
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.DeprecatedObjectInstanceFieldReferenceInspection
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with reference to 'INSTANCE' field" "true"
|
||||
import a.A;
|
||||
|
||||
class B {
|
||||
void bar() {
|
||||
A.INSTANCE.getName();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with reference to 'INSTANCE' field" "true"
|
||||
import a.A;
|
||||
|
||||
class B {
|
||||
void bar() {
|
||||
A.IN<caret>STANCE$.getName();
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package a
|
||||
|
||||
object A {
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with reference to 'INSTANCE' field" "true"
|
||||
import a.A;
|
||||
|
||||
class B {
|
||||
void bar() {
|
||||
A.INSTANCE.getName();
|
||||
}
|
||||
}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with reference to 'INSTANCE' field" "true"
|
||||
import static a.A.INSTANCE$;
|
||||
|
||||
class B {
|
||||
void bar() {
|
||||
IN<caret>STANCE$.getName();
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package a
|
||||
|
||||
object A {
|
||||
val name: String = ""
|
||||
}
|
||||
Reference in New Issue
Block a user