osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: commons-compress git commit: shorten method name


:-)

Gary

On Mon, Nov 19, 2018 at 9:25 AM <bodewig@xxxxxxxxxx> wrote:

> 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@xxxxxxxxxx>
> Authored: Mon Nov 19 17:24:53 2018 +0100
> Committer: Stefan Bodewig <bodewig@xxxxxxxxxx>
> 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 {
>
>