Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addCatchBlock/before7.java

14 lines
351 B
Java

// "Add Catch Clause(s)" "true"
class Test {
static class E1 extends Exception { }
static class E2 extends Exception { }
static class MyResource implements AutoCloseable {
public MyResource() throws E1 { }
public void close() throws E2 { }
}
void m() {
try (MyResource r = <caret>new MyResource())
}
}