summaryrefslogtreecommitdiff
path: root/src/examples/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/java')
-rw-r--r--src/examples/java/bjc/inflexion/examples/InflexionTester.java3
1 files changed, 3 insertions, 0 deletions
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));