commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [2/7] commons-compress git commit: len parameter of fill is no longer used
Date Sat, 04 Feb 2017 16:14:29 GMT
len parameter of fill is no longer used


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

Branch: refs/heads/master
Commit: 3bf5ef1b921375ae7639b521b05898df42226920
Parents: cc0039d
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Sat Feb 4 16:54:09 2017 +0100
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Sat Feb 4 16:54:09 2017 +0100

----------------------------------------------------------------------
 .../compressors/snappy/SnappyCompressorInputStream.java     | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/3bf5ef1b/src/main/java/org/apache/commons/compress/compressors/snappy/SnappyCompressorInputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/compressors/snappy/SnappyCompressorInputStream.java
b/src/main/java/org/apache/commons/compress/compressors/snappy/SnappyCompressorInputStream.java
index 15175b0..8c9efd0 100644
--- a/src/main/java/org/apache/commons/compress/compressors/snappy/SnappyCompressorInputStream.java
+++ b/src/main/java/org/apache/commons/compress/compressors/snappy/SnappyCompressorInputStream.java
@@ -95,7 +95,7 @@ public class SnappyCompressorInputStream extends AbstractLZ77CompressorInputStre
         }
         switch (state) {
         case NO_BLOCK:
-            fill(len);
+            fill();
             return read(b, off, len);
         case IN_LITERAL:
             int litLen = readLiteral(b, off, len);
@@ -115,12 +115,9 @@ public class SnappyCompressorInputStream extends AbstractLZ77CompressorInputStre
     }
 
     /**
-     * Try to fill the buffer with enough bytes to satisfy the current
-     * read request.
-     *
-     * @param len the number of uncompressed bytes to read
+     * Try to fill the buffer with the next block of data.
      */
-    private void fill(final int len) throws IOException {
+    private void fill() throws IOException {
         if (uncompressedBytesRemaining == 0) {
             endReached = true;
             return;


Mime
View raw message