Files
openide/java/java-tests/testData/refactoring/introduceConstant/AnonymousClassWithThrownClause.java
T

17 lines
279 B
Java

import java.io.IOException;
class Test {
void bar() throws IOException {}
I get() {
return <selection>new I() {
@Override
public void foo() throws IOException {
bar();
}
}</selection>;
}
}
interface I {
void foo() throws IOException;
}