Add catch block fix made aware of try-with-resources

This commit is contained in:
Roman Shevchenko
2011-03-01 20:34:17 +01:00
parent f627677fdd
commit a5a7e6846a
6 changed files with 85 additions and 13 deletions
@@ -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()) {
}
}
}