Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/deleteCatch/afterTryWithResources.java
2014-01-02 11:59:13 +01:00

17 lines
294 B
Java

// "Delete catch for 'java.lang.ClassNotFoundException'" "true"
import java.io.*;
class Cl implements AutoCloseable {
public void close() throws IOException {
in.close();
}
}
class a {
void f() throws IOException {
try (Cl c = new Cl()) {
c.close();
}
}
}