IDEA-93289 (test)

This commit is contained in:
Roman Shevchenko
2012-11-02 21:50:43 +01:00
parent a24681a5cc
commit 8cc5dae048
3 changed files with 27 additions and 2 deletions
@@ -0,0 +1,11 @@
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
class C {
void m(File file) throws IOException {
try (FileInputStream fileInputStream = new FileInputStream(file)) {
int read = fileInputStream.read();
}
}
}