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: whitespace
Date Sat, 05 Mar 2016 20:58:03 GMT
whitespace


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

Branch: refs/heads/master
Commit: 0427056da2ed891c48e13c6b4d417685f91946a3
Parents: b88dd3e
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Sat Mar 5 21:54:57 2016 +0100
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Sat Mar 5 21:54:57 2016 +0100

----------------------------------------------------------------------
 .../compress/archivers/zip/ZipArchiveOutputStream.java   | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/0427056d/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
index 068c97e..0fe28b1 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
@@ -1247,13 +1247,12 @@ public class ZipArchiveOutputStream extends ArchiveOutputStream {
         putLong(ze.getExternalAttributes(), buf, CFH_EXTERNAL_ATTRIBUTES_OFFSET);
 
         // relative offset of LFH
-        if(lfhOffset >= ZIP64_MAGIC || zip64Mode == Zip64Mode.Always){
-        	putLong(ZIP64_MAGIC, buf, CFH_LFH_OFFSET);
-        }
-        else{
-        	putLong(Math.min(lfhOffset, ZIP64_MAGIC), buf, CFH_LFH_OFFSET);
+        if (lfhOffset >= ZIP64_MAGIC || zip64Mode == Zip64Mode.Always) {
+            putLong(ZIP64_MAGIC, buf, CFH_LFH_OFFSET);
+        } else {
+            putLong(Math.min(lfhOffset, ZIP64_MAGIC), buf, CFH_LFH_OFFSET);
         }
-        
+
         // file name
         System.arraycopy(name.array(), name.arrayOffset(), buf, CFH_FILENAME_OFFSET, nameLen);
 


Mime
View raw message