diff --git a/ISBPL.java b/ISBPL.java index 72c00b1..f32b8b3 100644 --- a/ISBPL.java +++ b/ISBPL.java @@ -1848,7 +1848,6 @@ public class ISBPL { } private static String readFile(File f) throws IOException { - //noinspection resource FileInputStream fis = new FileInputStream(f); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); byte[] currentBytes = new byte[4096]; @@ -1856,6 +1855,7 @@ public class ISBPL { while ((len = fis.read(currentBytes)) > 0) { bytes.write(currentBytes, 0, len); } + fis.close(); return bytes.toString(); }