optimize imports: do not skip static imports in favor for simple imports (IDEA-95276)

This commit is contained in:
anna
2012-11-20 15:16:38 +01:00
parent 512b0696f7
commit bfecda5998
4 changed files with 83 additions and 3 deletions
@@ -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;
}
}