From 6cefe003af0d6a24447fcfaa91c785d290efd95d Mon Sep 17 00:00:00 2001 From: Ben Culkin Date: Tue, 27 Sep 2022 19:09:53 -0400 Subject: A few updates --- src/examples/java/bjc/inflexion/examples/InflexionTester.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/examples/java/bjc/inflexion/examples/InflexionTester.java b/src/examples/java/bjc/inflexion/examples/InflexionTester.java index bf0452c..d2f2131 100644 --- a/src/examples/java/bjc/inflexion/examples/InflexionTester.java +++ b/src/examples/java/bjc/inflexion/examples/InflexionTester.java @@ -88,7 +88,10 @@ public class InflexionTester { final String fname = scn.nextLine().trim(); try (InputStream compressedStream = new FileInputStream(fname)) { + // both managed by above stream + @SuppressWarnings("resource") final InputStream stream = new BZip2CompressorInputStream(compressedStream); + @SuppressWarnings("resource") final BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); -- cgit v1.2.3