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 2025/04/13 20:28:50 UTC

(commons-compress) branch master updated (c1190e006 -> c5c3c4612)

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git


    from c1190e006 Javadoc
     new 9bade9b8f Remove redundant call to super.
     new 230400ccc Remove redundant call to super.
     new 1b139cc2e Remove redundant call to super.
     new 80343cc11 Add missing @Override
     new c5c3c4612 No need to nest

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/commons/compress/archivers/ArchiveOutputStream.java  | 2 +-
 .../java/org/apache/commons/compress/archivers/zip/ZipIoUtil.java   | 6 ++++--
 .../apache/commons/compress/compressors/CompressorOutputStream.java | 2 +-
 .../java/org/apache/commons/compress/archivers/zip/ZipFileTest.java | 1 +
 4 files changed, 7 insertions(+), 4 deletions(-)


(commons-compress) 03/05: Remove redundant call to super.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit 1b139cc2ec08586ef910486ca5c73fb071d40208
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Apr 13 16:28:13 2025 -0400

    Remove redundant call to super.
---
 .../org/apache/commons/compress/compressors/CompressorOutputStream.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/compress/compressors/CompressorOutputStream.java b/src/main/java/org/apache/commons/compress/compressors/CompressorOutputStream.java
index 0bdb6f8b0..78b411370 100644
--- a/src/main/java/org/apache/commons/compress/compressors/CompressorOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/compressors/CompressorOutputStream.java
@@ -36,7 +36,7 @@ public abstract class CompressorOutputStream<T extends OutputStream> extends Com
      * </p>
      */
     public CompressorOutputStream() {
-        super();
+        // empty
     }
 
     /**


(commons-compress) 04/05: Add missing @Override

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit 80343cc115f82c2fdde44a95b7376bfa7ccb24c5
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Apr 13 16:28:29 2025 -0400

    Add missing @Override
---
 src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java b/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
index 80d1d8dbe..5bcba1cbb 100644
--- a/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
@@ -80,6 +80,7 @@ private AirliftZstdZipFile(final File file) throws IOException {
             super(file);
         }
 
+        @Override
         protected InputStream createZstdInputStream(final InputStream is) throws IOException {
             return new ZstdInputStream(is) {
 


(commons-compress) 05/05: No need to nest

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit c5c3c46127084b7a07691e8871b057de7c42f011
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Apr 13 16:28:45 2025 -0400

    No need to nest
---
 .../java/org/apache/commons/compress/archivers/zip/ZipIoUtil.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipIoUtil.java b/src/main/java/org/apache/commons/compress/archivers/zip/ZipIoUtil.java
index d09416f71..20a3a3a0c 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipIoUtil.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipIoUtil.java
@@ -46,7 +46,8 @@ static void writeAll(final FileChannel channel, final ByteBuffer buffer, final l
                 // A non-blocking channel
                 Thread.yield();
                 continue;
-            } else if (written < 0) {
+            }
+            if (written < 0) {
                 throw new IOException("Failed to write all bytes in the buffer for channel=" + channel + ", length=" + remaining + ", written=" + written);
             }
             currentPos += written;
@@ -68,7 +69,8 @@ static void writeAll(final WritableByteChannel channel, final ByteBuffer buffer)
                 // A non-blocking channel
                 Thread.yield();
                 continue;
-            } else if (written < 0) {
+            }
+            if (written < 0) {
                 throw new IOException("Failed to write all bytes in the buffer for channel=" + channel + ", length=" + remaining + ", written=" + written);
             }
         }


(commons-compress) 02/05: Remove redundant call to super.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit 230400ccc2322bf6a682da90b68d1179988688e3
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Apr 13 16:28:06 2025 -0400

    Remove redundant call to super.
---
 .../java/org/apache/commons/compress/archivers/ArchiveOutputStream.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java
index bf139541c..853fbda37 100644
--- a/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java
@@ -67,6 +67,7 @@ public abstract class ArchiveOutputStream<E extends ArchiveEntry> extends Compre
      * </p>
      */
     public ArchiveOutputStream() {
+        // empty
     }
 
     /**


(commons-compress) 01/05: Remove redundant call to super.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit 9bade9b8fc853f5884c0de8f9f21e54388fe6283
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Apr 13 16:28:00 2025 -0400

    Remove redundant call to super.
---
 .../java/org/apache/commons/compress/archivers/ArchiveOutputStream.java  | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java
index 29a5c0ead..bf139541c 100644
--- a/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java
@@ -67,7 +67,6 @@ public abstract class ArchiveOutputStream<E extends ArchiveEntry> extends Compre
      * </p>
      */
     public ArchiveOutputStream() {
-        super();
     }
 
     /**