You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2017/02/27 23:32:56 UTC
commons-compress git commit: Suppress false positive resource not
closed warning
Repository: commons-compress
Updated Branches:
refs/heads/master 4344ff733 -> 5375fd9dc
Suppress false positive resource not closed warning
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/5375fd9d
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/5375fd9d
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/5375fd9d
Branch: refs/heads/master
Commit: 5375fd9dc55f1dd01e155af8646d1ec67bd6be29
Parents: 4344ff7
Author: Sebb <se...@apache.org>
Authored: Mon Feb 27 23:32:53 2017 +0000
Committer: Sebb <se...@apache.org>
Committed: Mon Feb 27 23:32:53 2017 +0000
----------------------------------------------------------------------
.../java/org/apache/commons/compress/archivers/sevenz/Coders.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/5375fd9d/src/main/java/org/apache/commons/compress/archivers/sevenz/Coders.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/sevenz/Coders.java b/src/main/java/org/apache/commons/compress/archivers/sevenz/Coders.java
index af95e9d..de7c359 100644
--- a/src/main/java/org/apache/commons/compress/archivers/sevenz/Coders.java
+++ b/src/main/java/org/apache/commons/compress/archivers/sevenz/Coders.java
@@ -128,6 +128,7 @@ class Coders {
super(Number.class);
}
+ @SuppressWarnings("resource") // caller must close the InputStream
@Override
InputStream decode(final String archiveName, final InputStream in, final long uncompressedLength,
final Coder coder, final byte[] password)