commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject commons-compress git commit: shorten method name
Date Mon, 19 Nov 2018 16:25:07 GMT
Repository: commons-compress
Updated Branches:
  refs/heads/master f132d6c50 -> 6e47be35f


shorten method name


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

Branch: refs/heads/master
Commit: 6e47be35fca595d8637441a578e29045b329c611
Parents: f132d6c
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Mon Nov 19 17:24:53 2018 +0100
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Mon Nov 19 17:24:53 2018 +0100

----------------------------------------------------------------------
 .../compress/archivers/zip/ParallelScatterZipCreator.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/6e47be35/src/main/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreator.java
b/src/main/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreator.java
index bd5a561..7e8f8ad 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreator.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreator.java
@@ -263,7 +263,7 @@ public class ParallelScatterZipCreator {
 
             scatterDoneAt = System.currentTimeMillis();
         } finally {
-            ensureStreamsAreClosed();
+            closeAll();
         }
     }
 
@@ -276,7 +276,7 @@ public class ParallelScatterZipCreator {
         return new ScatterStatistics(compressionDoneAt - startedAt, scatterDoneAt - compressionDoneAt);
     }
 
-    private void ensureStreamsAreClosed() {
+    private void closeAll() {
         synchronized (streams) {
             for (final ScatterZipOutputStream scatterStream : streams) {
                 try {


Mime
View raw message