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/06/24 15:14:12 UTC
[2/3] commons-compress git commit: COMPRESS-407 tweaks
COMPRESS-407 tweaks
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/e57007c0
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/e57007c0
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/e57007c0
Branch: refs/heads/master
Commit: e57007c00d577c8f66a5d93681058a528613645c
Parents: b6ae1d0
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Jun 24 17:02:30 2017 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Jun 24 17:02:30 2017 +0200
----------------------------------------------------------------------
.../commons/compress/archivers/tar/TarArchiveOutputStream.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/e57007c0/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java
index 864d4ad..6b31705 100644
--- a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java
@@ -93,7 +93,7 @@ public class TarArchiveOutputStream extends ArchiveOutputStream {
private static final ZipEncoding ASCII =
ZipEncodingHelper.getZipEncoding("ASCII");
- private static int BLOCK_SIZE_UNSPECIFIED = -511;
+ private static final int BLOCK_SIZE_UNSPECIFIED = -511;
/**
* Constructor for TarInputStream.
@@ -175,7 +175,7 @@ public class TarArchiveOutputStream extends ArchiveOutputStream {
realBlockSize = blockSize;
}
- if(realBlockSize <=0 || realBlockSize % RECORD_SIZE != 0) {
+ if (realBlockSize <=0 || realBlockSize % RECORD_SIZE != 0) {
throw new IllegalArgumentException("Block size must be a multiple of 512 bytes. Attempt to use set size of " + blockSize);
}
out = new CountingOutputStream(os);