inspection and quickfix to replace usages of deprecated package facades
This commit is contained in:
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.DeprecatedFacadeUsageInspection
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Replace with new-style facade class" "true"
|
||||
import facade.Basic_before_data_facadeKt;
|
||||
|
||||
class A {
|
||||
void bar() {
|
||||
Basic_before_data_facadeKt.foo();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with new-style facade class" "true"
|
||||
import facade.FacadePackage;
|
||||
|
||||
class A {
|
||||
void bar() {
|
||||
FacadePackage.<caret>foo();
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package facade
|
||||
|
||||
fun foo() {
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with new-style facade class" "true"
|
||||
import facade.StaticImport_before_data_facadeKt;
|
||||
|
||||
class A {
|
||||
void bar() {
|
||||
StaticImport_before_data_facadeKt.foo();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with new-style facade class" "true"
|
||||
import static facade.FacadePackage.foo;
|
||||
|
||||
class A {
|
||||
void bar() {
|
||||
<caret>foo();
|
||||
}
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
package facade
|
||||
|
||||
fun foo() {
|
||||
}
|
||||
Reference in New Issue
Block a user