EA-45951, EA-58568 (PSI traversal fixed; test added)

This commit is contained in:
Roman Shevchenko
2015-06-19 13:44:33 +03:00
parent 9edd99c42a
commit f8581b839b
4 changed files with 52 additions and 33 deletions
@@ -0,0 +1,15 @@
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.channels.FileChannel;
class C {
void m(File file) throws IOException {
int x;
FileChannel ch;
try (FileInputStream stream = new FileInputStream(file)) {
ch = stream.getChannel();
}
ch.close();
x = 0;
}
}