This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git


The following commit(s) were added to refs/heads/master by this push:
     new 99271ddc Add @SuppressWarnings
99271ddc is described below

commit 99271ddcd48143ca2c1988b68f163df0d5086d19
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Nov 4 07:04:15 2023 -0400

    Add @SuppressWarnings
---
 .../commons/compress/compressors/bzip2/PythonTruncatedBzip2Test.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/commons/compress/compressors/bzip2/PythonTruncatedBzip2Test.java
 
b/src/test/java/org/apache/commons/compress/compressors/bzip2/PythonTruncatedBzip2Test.java
index 68bedfbe..50af09e6 100644
--- 
a/src/test/java/org/apache/commons/compress/compressors/bzip2/PythonTruncatedBzip2Test.java
+++ 
b/src/test/java/org/apache/commons/compress/compressors/bzip2/PythonTruncatedBzip2Test.java
@@ -59,10 +59,10 @@ public class PythonTruncatedBzip2Test {
         TRUNCATED_DATA = Arrays.copyOfRange(DATA, 0, DATA.length - 10);
     }
 
+    @SuppressWarnings("resource") // Caller closes
     private static ReadableByteChannel makeBZ2C(final InputStream source) 
throws IOException {
         final BufferedInputStream bin = new BufferedInputStream(source);
         final BZip2CompressorInputStream bZin = new 
BZip2CompressorInputStream(bin, true);
-
         return Channels.newChannel(bZin);
     }
 

Reply via email to