IDEA-126629 java.io.Closeable is not AutoCloseable in some cases

search for close() method in a correct scope
This commit is contained in:
peter
2015-06-23 18:20:41 +02:00
parent 305cf882f1
commit 3ae8186707
2 changed files with 6 additions and 1 deletions

View File

@@ -1,11 +1,16 @@
package p;
import java.io.IOException;
class Foo {
{
try (MyReader c1 = new MyReader() {}) {
}
catch (IOException e) {
e.printStackTrace();
}
}
}