Files
openide/java/java-tests/testData/refactoring/introduceFunctionalParameter/afterExceptionPreventFromCompatibility.java

19 lines
312 B
Java

class Test {
@FunctionalInterface
interface I {
void f() throws Exception;
}
void bar() {
foo(new Runnable() {
public void run() {
System.out.println("");
System.out.println("");
}
});
}
void foo(Runnable anObject) {
anObject.run();
}
}