mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
There's another fix 'Add catch to try' and this is most likely what people want. Having too many fixes is confusing. GitOrigin-RevId: c6c03bf52a9b59a14e7e8025e0fa525de7872630
13 lines
281 B
Java
13 lines
281 B
Java
// "Surround with try/catch" "false"
|
|
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()) {
|
|
}
|
|
}
|
|
} |