Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addCatchBlock/after5.java
2013-05-06 20:55:21 +02:00

15 lines
357 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 (MyResource r = new MyResource()) {
} catch (IOException e) {
<selection>e.printStackTrace();</selection>
}
}
}