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;
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package my.simple.name
|
||||
|
||||
import my.Reproducer
|
||||
|
||||
fun test() = Reproducer()
|
||||
|
||||
fun main() {
|
||||
Reproducer.test().number()
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
package my;
|
||||
|
||||
public class Reproducer {
|
||||
public static Reproducer test() {
|
||||
return new Reproducer();
|
||||
}
|
||||
|
||||
public int number() {
|
||||
return 42;
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package my.simple.name
|
||||
|
||||
import my.Reproducer
|
||||
|
||||
fun test() = Reproducer()
|
||||
|
||||
fun main() {
|
||||
Reproducer<caret>.test().number()
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"inspectionClass": "org.jetbrains.kotlin.idea.inspections.RemoveRedundantQualifierNameInspection",
|
||||
"problem": "none",
|
||||
"mainFile": "test.kt"
|
||||
}
|
||||
Reference in New Issue
Block a user