mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
13 lines
274 B
Java
13 lines
274 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 (<caret>MyResource r = new MyResource()) {
|
|
}
|
|
}
|
|
} |