disable on-demand static import for non-static members (IDEA-191774)

This commit is contained in:
Anna.Kozlova
2018-05-15 15:08:43 +02:00
parent 05b80006a5
commit 10e023e75e
4 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
// "Add on demand static import for 'test.Foo'" "true"
package test;
import java.util.List;
import static test.Foo.*;
abstract class Foo implements List<Bar> {
static class Bar {}
}

View File

@@ -0,0 +1,8 @@
// "Add on demand static import for 'test.Foo'" "true"
package test;
import java.util.List;
abstract class Foo implements List<F<caret>oo.Bar> {
static class Bar {}
}

View File

@@ -0,0 +1,8 @@
// "Add on demand static import for 'test.Foo.Bar'" "false"
package test;
import java.util.List;
abstract class Foo implements List<F<caret>oo.Bar> {
class Bar {}
}