move members: process qualified ref if it was at the same time statically imported (IDEA-91634)

This commit is contained in:
Anna Kozlova
2016-01-12 19:28:49 +01:00
parent 2dc59b5256
commit a5b7676e03
4 changed files with 37 additions and 1 deletions
@@ -0,0 +1,16 @@
import static ImportingClass.ImportantConstants.ReallyImportantConstant;
public class ImportingClass {
public static void main(String[] args) {
System.out.println(ReallyImportantConstant);
System.out.println(ImportantConstants.ReallyImportantConstant);
}
public static class Constants {
}
public static class ImportantConstants {
public static String ReallyImportantConstant = "important";
}
}
@@ -0,0 +1,16 @@
import static ImportingClass.Constants.ReallyImportantConstant;
public class ImportingClass {
public static void main(String[] args) {
System.out.println(ReallyImportantConstant);
System.out.println(Constants.ReallyImportantConstant);
}
public static class Constants {
public static String ReallyImportantConstant = "important";
}
public static class ImportantConstants {
}
}