mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
preserve comments: surround with auto-closeable
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
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)) {
|
||||
String s = "initial value";//Non-NLS
|
||||
String bar = s + fileInputStream.read();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user