Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/invokeHandle/afterConstructor4.java
T

14 lines
297 B
Java

// "Use constructor 'Test()'" "true"
import java.lang.invoke.*;
class Main {
void foo() throws Exception {
MethodHandles.Lookup l = MethodHandles.lookup();
l.findConstructor(Test.class, MethodType.methodType(void.class));
}
}
class Test {
public Test() {}
public Test(int a) {}
}