mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
Java: Improved inspection "MethodHandle/VarHandle type mismatch" - show candidates for replacement of method/constructor in a separate pop-up menu (IDEA-167318)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import java.lang.invoke.*;
|
||||
|
||||
class Main {
|
||||
void foo() throws Exception {
|
||||
MethodHandles.Lookup l = MethodHandles.lookup();
|
||||
l.findConstructor(Test.class, MethodType.methodType(void.class, int.class));
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
public Test() {}
|
||||
public Test(int a) {}
|
||||
}
|
||||
Reference in New Issue
Block a user