mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-14 15:36:27 +07:00
Java: Filter by 'static' modifier in MethodHandle/VarHandle completion assistance (IDEA-167319, IDEA-CR-19610)
This commit is contained in:
@@ -3,6 +3,6 @@ import java.lang.invoke.*;
|
||||
public class Main {
|
||||
void foo() throws Throwable {
|
||||
MethodHandles.Lookup lookup = MethodHandles.lookup();
|
||||
lookup.findStatic(Types.class, "sObjMethod", <caret>);
|
||||
lookup.findStatic(Types.class, "objMethod", <caret>);
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,6 @@ import java.lang.invoke.*;
|
||||
public class Main {
|
||||
void foo() throws Throwable {
|
||||
MethodHandles.Lookup lookup = MethodHandles.lookup();
|
||||
lookup.findStatic(Types.class, "sObjMethod", MethodType.methodType(Object.class, Object.class));
|
||||
lookup.findStatic(Types.class, "objMethod", MethodType.methodType(Object.class, Object.class));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user