From 2b66678e8faabfd57d39208f2060e76bbf7e7f4e Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sat, 23 Jul 2022 09:13:40 +0200 Subject: [PATCH] fix --- ISBPL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }