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 2021/12/01 15:49:57 UTC
[commons-compress] branch master updated: Remove useless parens.
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
The following commit(s) were added to refs/heads/master by this push:
new 835531e Remove useless parens.
835531e is described below
commit 835531efc5647d9df0e992bb970a7b036b80bdfc
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Dec 1 10:49:55 2021 -0500
Remove useless parens.
---
.../commons/compress/harmony/unpack200/Pack200UnpackerAdapter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/compress/harmony/unpack200/Pack200UnpackerAdapter.java b/src/main/java/org/apache/commons/compress/harmony/unpack200/Pack200UnpackerAdapter.java
index 876f75a..af9dc6b 100644
--- a/src/main/java/org/apache/commons/compress/harmony/unpack200/Pack200UnpackerAdapter.java
+++ b/src/main/java/org/apache/commons/compress/harmony/unpack200/Pack200UnpackerAdapter.java
@@ -66,7 +66,7 @@ public class Pack200UnpackerAdapter extends Pack200Adapter implements Unpacker {
throw new IllegalArgumentException("Must specify both input and output streams");
}
final int size = (int) file.length();
- final int bufferSize = (size > 0 && size < DEFAULT_BUFFER_SIZE ? size : DEFAULT_BUFFER_SIZE);
+ final int bufferSize = size > 0 && size < DEFAULT_BUFFER_SIZE ? size : DEFAULT_BUFFER_SIZE;
final InputStream in = new BufferedInputStream(new FileInputStream(file), bufferSize);
unpack(in, out);
}