mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
15 lines
359 B
Java
15 lines
359 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>
|
|
}
|
|
}
|
|
} |