mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
Add catch block fix made aware of try-with-resources
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// "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()) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user