Discussion:
commons-compress git commit: shorten method name
Gary Gregory
2018-11-19 21:31:01 UTC
Permalink
:-)

Gary
Repository: commons-compress
refs/heads/master f132d6c50 -> 6e47be35f
shorten method name
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
http://git-wip-us.apache.org/repos/asf/commons-compress/commit/6e47be35
http://git-wip-us.apache.org/repos/asf/commons-compress/tree/6e47be35
http://git-wip-us.apache.org/repos/asf/commons-compress/diff/6e47be35
Branch: refs/heads/master
Commit: 6e47be35fca595d8637441a578e29045b329c611
Parents: f132d6c
Authored: Mon Nov 19 17:24:53 2018 +0100
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 {
Loading...