mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 22:51:01 +07:00
13 lines
280 B
Java
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()) {
|
|
}
|
|
}
|
|
} |