mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
IDEA-126629 java.io.Closeable is not AutoCloseable in some cases
search for close() method in a correct scope
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
package p;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
class Foo {
|
||||
|
||||
{
|
||||
try (MyReader c1 = new MyReader() {}) {
|
||||
|
||||
}
|
||||
catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user