Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addToThrows/before1.java
T

13 lines
293 B
Java

// "Add Exception(s) to Method Signature" "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()) {
}
}
}