Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/anonymous2lambda/afterSameOverload.java
Anna Kozlova 3dff91600a redundant code block: compare same overload resolution (IDEA-174288)
instead of trying with cast afterwards, don't suggest to remove the block at the first place
2017-06-14 11:51:52 +03:00

16 lines
267 B
Java

// "Replace with lambda" "true"
import java.util.concurrent.Callable;
class A {
static void submit(Runnable r){}
static <T> T submit(Callable<T> c){
return null;
}
public static void main(String[] args) {
submit(() -> {
new A();
});
}
}