mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 21:53:58 +07:00
GitOrigin-RevId: 7f72c5f68ab821e728eb0d5152f0910f48035046
15 lines
398 B
Java
15 lines
398 B
Java
// "Add exception to method signature" "true-preview"
|
|
class C {
|
|
static class E1 extends Exception { }
|
|
static class E2 extends Exception { }
|
|
|
|
static class MyResource implements AutoCloseable {
|
|
public void doSomething() throws E1 { }
|
|
public void close() throws E2 { }
|
|
}
|
|
|
|
void m() throws E1 {
|
|
try (<caret>MyResource r = new MyResource()) {
|
|
}
|
|
}
|
|
} |