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 <garydgreg...@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."); }