mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
don't suggest expected type members twice when they are statically imported (IDEA-79426)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import static Super.FOO;
|
||||
|
||||
class Super {
|
||||
public static final Super FOO = null;
|
||||
public static final Super FOX = true;
|
||||
}
|
||||
|
||||
class Intermediate {
|
||||
Super s = FO<caret>
|
||||
}
|
||||
|
||||
|
||||
+5
@@ -938,6 +938,11 @@ public class ListUtils {
|
||||
public void testSuggestExpectedTypeMembersInCall() throws Throwable { doTest('\n') }
|
||||
public void testExpectedTypesDotSelectsItem() throws Throwable { doTest('.') }
|
||||
|
||||
public void testExpectedTypeMembersVersusStaticImports() throws Throwable {
|
||||
configure()
|
||||
assertStringItems('FOO', 'FOX')
|
||||
}
|
||||
|
||||
public void testDoubleExpectedTypeFactoryMethod() throws Throwable {
|
||||
configure()
|
||||
assertStringItems('Key', 'create', 'create')
|
||||
|
||||
Reference in New Issue
Block a user