You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/05/17 18:32:42 UTC
(commons-compress) 01/06: Add @SuppressWarnings
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
commit 1c314a2d18c7630011f01e27e681c774100aba4f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri May 17 13:59:45 2024 -0400
Add @SuppressWarnings
---
.../apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
index 2ee14f95e..50b02c1fd 100644
--- a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
@@ -72,6 +72,7 @@ public class TarArchiveInputStreamTest extends AbstractTest {
});
}
+ @SuppressWarnings("resource") // Caller closes
private TarArchiveInputStream getTestStream(final String name) {
return new TarArchiveInputStream(TarArchiveInputStreamTest.class.getResourceAsStream(name));
}