Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/anonymous2lambda/afterCodeBlockLambda.java
2016-02-09 20:09:10 +01:00

16 lines
309 B
Java

// "Replace with lambda" "true"
class A {
{
bar(() -> foo());
}
private <T> void bar(ThrowableComputable<T, Exception> throwableComputable) {}
private <K> K foo() throws Exception {
return null;
}
interface ThrowableComputable<T, T1 extends Throwable> {
T compute() throws T1;
}
}