Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addCatchBlock/before5.java
2014-12-06 11:49:04 +03:00

13 lines
276 B
Java

// "Add 'catch' clause(s)" "true"
import java.io.IOException;
class Test {
static class MyResource implements AutoCloseable {
public void close() throws IOException { }
}
void m() {
try (<caret>MyResource r = new MyResource()) {
}
}
}