RemoveRedundantQualifierNameInspection: fix case with non-static java functions
This commit is contained in:
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
package my;
|
||||
|
||||
public class Reproducer {
|
||||
public static Reproducer test() {
|
||||
return new Reproducer();
|
||||
}
|
||||
|
||||
public int number() {
|
||||
return 42;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package my.simple.name
|
||||
|
||||
import my.Reproducer
|
||||
import my.Reproducer.test
|
||||
|
||||
fun test() = Reproducer()
|
||||
|
||||
fun main() {
|
||||
test().number()
|
||||
}
|
||||
idea/testData/multiFileLocalInspections/redundantQualifierName/javaStatic2/before/my/Reproducer.java
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
package my;
|
||||
|
||||
public class Reproducer {
|
||||
public static Reproducer test() {
|
||||
return new Reproducer();
|
||||
}
|
||||
|
||||
public int number() {
|
||||
return 42;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package my.simple.name
|
||||
|
||||
import my.Reproducer
|
||||
import my.Reproducer.test
|
||||
|
||||
fun test() = Reproducer()
|
||||
|
||||
fun main() {
|
||||
Reproducer<caret>.test().number()
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"inspectionClass": "org.jetbrains.kotlin.idea.inspections.RemoveRedundantQualifierNameInspection",
|
||||
"mainFile": "test.kt"
|
||||
}
|
||||
Reference in New Issue
Block a user