mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 06:39:38 +07:00
IDEA-62053 Smart completion should suggest "public static final members" of any class
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import java.lang.Object;
|
||||
|
||||
class Super<T> {
|
||||
}
|
||||
|
||||
class SubString extends Super<String> {
|
||||
public static SubString createSubString() {}
|
||||
}
|
||||
class SubInt extends Super<Integer> { }
|
||||
class SubGeneric<T> extends Super<T> { }
|
||||
class SubRaw extends Super { }
|
||||
|
||||
class Factory {
|
||||
public static Object createObject() {}
|
||||
public static <T> Super<T> createExpected() {}
|
||||
public static Super<Integer> createSuperInt() {}
|
||||
public static SubInt createSubInt() {}
|
||||
public static <T> SubGeneric<T> createSubGeneric() {}
|
||||
public static SubRaw createSubRaw() {}
|
||||
}
|
||||
|
||||
class Intermediate {
|
||||
|
||||
Super<String> s = create<caret>x
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ public class Test {
|
||||
|
||||
static MyEnum getAvailabilityStatusCode() {
|
||||
|
||||
return get<caret>
|
||||
return getAS<caret>
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ class C{
|
||||
{
|
||||
Object o;
|
||||
if (o instanceof Foo) {
|
||||
new Object().do<caret>
|
||||
new Object().dofo<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user