mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 23:50:57 +07:00
27 lines
537 B
Java
27 lines
537 B
Java
class Test23 {
|
|
void m() throws Exception {
|
|
try (FooContext ig<caret>nored1 = new FooContext()) {
|
|
try (BarContext ignored = new BarContext()) {
|
|
fooBar();
|
|
}
|
|
}
|
|
}
|
|
|
|
private void fooBar() {
|
|
|
|
}
|
|
|
|
private class FooContext implements AutoCloseable {
|
|
@Override
|
|
public void close() throws Exception {
|
|
|
|
}
|
|
}
|
|
|
|
private class BarContext implements AutoCloseable{
|
|
@Override
|
|
public void close() throws Exception {
|
|
|
|
}
|
|
}
|
|
} |