Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/deleteCatch/beforeTryWithResources.java
Tagir Valeev dd689d3a39 [java-inspections] More tests for preview
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
2022-07-29 17:54:59 +00:00

18 lines
352 B
Java

// "Delete catch for 'java.lang.ClassNotFoundException'" "true-preview"
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();
} catch (<caret>ClassNotFoundException e) {
}
}
}