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 2016/04/09 10:00:24 UTC

commons-compress git commit: Use blocks.

Repository: commons-compress
Updated Branches:
  refs/heads/master 8d72635b9 -> 05bb97bf7


Use blocks.

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

Branch: refs/heads/master
Commit: 05bb97bf769913d05fc4c49b625149c8ba92bf66
Parents: 8d72635
Author: ggregory <gg...@apache.org>
Authored: Sat Apr 9 01:00:23 2016 -0700
Committer: ggregory <gg...@apache.org>
Committed: Sat Apr 9 01:00:23 2016 -0700

----------------------------------------------------------------------
 .../apache/commons/compress/archivers/zip/ScatterSample.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/05bb97bf/src/test/java/org/apache/commons/compress/archivers/zip/ScatterSample.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/compress/archivers/zip/ScatterSample.java b/src/test/java/org/apache/commons/compress/archivers/zip/ScatterSample.java
index cede94f..7802137 100644
--- a/src/test/java/org/apache/commons/compress/archivers/zip/ScatterSample.java
+++ b/src/test/java/org/apache/commons/compress/archivers/zip/ScatterSample.java
@@ -32,10 +32,11 @@ public class ScatterSample {
     }
 
     public void addEntry(ZipArchiveEntry zipArchiveEntry, InputStreamSupplier streamSupplier) throws IOException {
-        if (zipArchiveEntry.isDirectory() && !zipArchiveEntry.isUnixSymlink())
+        if (zipArchiveEntry.isDirectory() && !zipArchiveEntry.isUnixSymlink()) {
             dirs.addArchiveEntry(ZipArchiveEntryRequest.createZipArchiveEntryRequest(zipArchiveEntry, streamSupplier));
-        else
+        } else {
             scatterZipCreator.addArchiveEntry( zipArchiveEntry, streamSupplier);
+        }
     }
 
     public void writeTo(ZipArchiveOutputStream zipArchiveOutputStream)