commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-compress git commit: Add @SuppressWarnings("resource").
Date Fri, 09 Dec 2016 19:36:36 GMT
Repository: commons-compress
Updated Branches:
  refs/heads/master 7b7f490c4 -> 05415c0ee


Add @SuppressWarnings("resource").

Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/05415c0e
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/05415c0e
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/05415c0e

Branch: refs/heads/master
Commit: 05415c0eedb027aab44472f114a680baea2dc71b
Parents: 7b7f490
Author: ggregory <ggregory@US-L-GG02.rocketsoftware.com>
Authored: Fri Dec 9 11:36:34 2016 -0800
Committer: ggregory <ggregory@US-L-GG02.rocketsoftware.com>
Committed: Fri Dec 9 11:36:34 2016 -0800

----------------------------------------------------------------------
 .../org/apache/commons/compress/archivers/sevenz/DeltaDecoder.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/05415c0e/src/main/java/org/apache/commons/compress/archivers/sevenz/DeltaDecoder.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/sevenz/DeltaDecoder.java
b/src/main/java/org/apache/commons/compress/archivers/sevenz/DeltaDecoder.java
index e109b02..bc58c63 100644
--- a/src/main/java/org/apache/commons/compress/archivers/sevenz/DeltaDecoder.java
+++ b/src/main/java/org/apache/commons/compress/archivers/sevenz/DeltaDecoder.java
@@ -35,6 +35,7 @@ class DeltaDecoder extends CoderBase {
         return new DeltaOptions(getOptionsFromCoder(coder)).getInputStream(in);
     }
 
+    @SuppressWarnings("resource")
     @Override
     OutputStream encode(final OutputStream out, final Object options) throws IOException
{
         final int distance = numberOptionOrDefault(options, 1);


Mime
View raw message