commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [2/3] commons-compress git commit: COMPRESS-407 tweaks
Date Sat, 24 Jun 2017 15:14:12 GMT
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 <bodewig@apache.org>
Authored: Sat Jun 24 17:02:30 2017 +0200
Committer: Stefan Bodewig <bodewig@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);


Mime
View raw message