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 2024/12/23 13:43:18 UTC

(commons-compress) branch master updated (33030c203 -> 0a92c4404)

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 33030c203 Better parameter name
     new 5e7afe8fb Whitespace
     new 0a92c4404 Javadoc: Add missing comment

The 2 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/ArchiveStreamFactory.java | 3 ---
 .../apache/commons/compress/archivers/ar/ArArchiveOutputStream.java | 6 ++++++
 2 files changed, 6 insertions(+), 3 deletions(-)


(commons-compress) 01/02: Whitespace

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 5e7afe8fb85c2e2ceda097c7d1508695d73939cf
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Mon Dec 23 08:38:52 2024 -0500

    Whitespace
---
 .../org/apache/commons/compress/archivers/ArchiveStreamFactory.java    | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java b/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
index 967257ace..17b1bb763 100644
--- a/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
+++ b/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
@@ -509,7 +509,6 @@ public class ArchiveStreamFactory implements ArchiveStreamProvider {
         if (out == null) {
             throw new IllegalArgumentException("OutputStream must not be null.");
         }
-
         if (AR.equalsIgnoreCase(archiverName)) {
             return (O) new ArArchiveOutputStream(out);
         }
@@ -541,12 +540,10 @@ public class ArchiveStreamFactory implements ArchiveStreamProvider {
         if (SEVEN_Z.equalsIgnoreCase(archiverName)) {
             throw new StreamingNotSupportedException(SEVEN_Z);
         }
-
         final ArchiveStreamProvider archiveStreamProvider = getArchiveOutputStreamProviders().get(toKey(archiverName));
         if (archiveStreamProvider != null) {
             return archiveStreamProvider.createArchiveOutputStream(archiverName, out, actualEncoding);
         }
-
         throw new ArchiveException("Archiver: " + archiverName + " not found.");
     }
 


(commons-compress) 02/02: Javadoc: Add missing comment

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 0a92c440491ac6d426a26960b95168b51e5294e1
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Mon Dec 23 08:39:43 2024 -0500

    Javadoc: Add missing comment
---
 .../apache/commons/compress/archivers/ar/ArArchiveOutputStream.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java
index 34d36afac..90cc01592 100644
--- a/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java
@@ -49,6 +49,12 @@ public class ArArchiveOutputStream extends ArchiveOutputStream<ArArchiveEntry> {
     private boolean prevEntryOpen;
     private int longFileMode = LONGFILE_ERROR;
 
+    /**
+     * Constructs a new instance with the given backing OutputStream.
+     *
+     * @param out the underlying output stream to be assigned to the field {@code this.out} for later use, or {@code null} if this instance is to be created
+     *            without an underlying stream.
+     */
     public ArArchiveOutputStream(final OutputStream out) {
         super(out);
     }