mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
optimize imports: do not skip static imports in favor for simple imports (IDEA-95276)
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package example;
|
||||
|
||||
import static java.lang.Math.cos;
|
||||
import static java.lang.Math.sin;
|
||||
import example.ImportedClass.I1;
|
||||
import example.ImportedClass.I1A;
|
||||
import static example.ImportedClass.BAZZ.E1;
|
||||
import static example.ImportedClass.V;
|
||||
import static example.ImportedClass.FOO;
|
||||
import example.ImportedClass.BAR;
|
||||
|
||||
public class MyTest {
|
||||
protected MyTest() {
|
||||
super();
|
||||
String az = BAR.AZ + V;
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class ImportedClass {
|
||||
public static String V = "";
|
||||
|
||||
public static enum I1 {
|
||||
E1;
|
||||
}
|
||||
public static enum I1A {
|
||||
E1;
|
||||
}
|
||||
|
||||
public static enum BAR {
|
||||
E1, AZ;
|
||||
}
|
||||
|
||||
public static String FOO = "";
|
||||
|
||||
public static enum BAZZ {
|
||||
E1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package example;
|
||||
|
||||
import example.ImportedClass.BAR;
|
||||
|
||||
import static example.ImportedClass.FOO;
|
||||
import static example.ImportedClass.V;
|
||||
|
||||
public class MyTest {
|
||||
protected MyTest() {
|
||||
super();
|
||||
String az = BAR.AZ + V;
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class ImportedClass {
|
||||
public static String V = "";
|
||||
|
||||
public static enum I1 {
|
||||
E1;
|
||||
}
|
||||
public static enum I1A {
|
||||
E1;
|
||||
}
|
||||
|
||||
public static enum BAR {
|
||||
E1, AZ;
|
||||
}
|
||||
|
||||
public static String FOO = "";
|
||||
|
||||
public static enum BAZZ {
|
||||
E1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user