mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
[java-inspection] IDEA-311127 Not find static import. Fix one more case
GitOrigin-RevId: a45f353468b849238dab2533c87b1f18740ec395
This commit is contained in:
committed by
intellij-monorepo-bot
parent
63396759c4
commit
068020ddd6
@@ -0,0 +1,30 @@
|
||||
// "Qualify static call..." "true"
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(B.produceSomething(1).isEmpty());
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
public static Object produceSomething(Integer i) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
public static List<String> produceSomething(Integer i) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
public static Object produceSomething(Integer i) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
|
||||
class C {
|
||||
public static Integer produceSomething(Integer i) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// "Qualify static call..." "true"
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(produceSomething<caret>(1).isEmpty());
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
public static Object produceSomething(Integer i) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
public static List<String> produceSomething(Integer i) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
public static Object produceSomething(Integer i) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
|
||||
class C {
|
||||
public static Integer produceSomething(Integer i) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user