Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addCatchBlock/before5.java
2011-03-01 20:34:17 +01:00

13 lines
274 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()) {
}
}
}