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
GitOrigin-RevId: 17ab10bf548ca6d5299e4059f476d56c832fdbca
This commit is contained in:
committed by
intellij-monorepo-bot
parent
035955bc6d
commit
d629bc2dd0
@@ -0,0 +1,27 @@
|
||||
// "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().isEmpty());
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
public static Object produceSomething() {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
public static List<String> produceSomething() {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
|
||||
class C {
|
||||
public static Integer produceSomething() {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// "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>().isEmpty());
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
public static Object produceSomething() {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
public static List<String> produceSomething() {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
|
||||
class C {
|
||||
public static Integer produceSomething() {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user