Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/anonymous2lambda/beforeCodeBlockLambda.java
2016-06-29 16:18:27 +03:00

21 lines
452 B
Java

// "Replace with lambda" "true"
class A {
{
bar(new Throwabl<caret>eComputable<String, Exception>() {
@Override
public String compute() throws Exception {
return 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;
}
}