You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2017/02/04 16:14:29 UTC
[2/7] commons-compress git commit: len parameter of fill is no longer
used
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 <bo...@apache.org>
Authored: Sat Feb 4 16:54:09 2017 +0100
Committer: Stefan Bodewig <bo...@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;