Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/surroundWithTry/before1.java
2011-03-01 20:34:18 +01:00

13 lines
280 B
Java

// "Surround with try/catch" "true"
class C {
static class E1 extends Exception { }
static class MyResource implements AutoCloseable {
public void close() throws E1 { }
}
void m() {
try (<caret>MyResource r = new MyResource()) {
}
}
}