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 2023/01/23 12:04:06 UTC

[commons-compress] branch master updated: Better internal typing

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


The following commit(s) were added to refs/heads/master by this push:
     new 33eaaf49 Better internal typing
33eaaf49 is described below

commit 33eaaf4933f9c0436432f1074bc9aac149c3a3f2
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jan 23 07:04:02 2023 -0500

    Better internal typing
---
 .../commons/compress/archivers/zip/ZipArchiveOutputStream.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
index 1aaa6c86..336dbd99 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
@@ -1298,7 +1298,7 @@ public class ZipArchiveOutputStream extends ArchiveOutputStream {
      */
     @Override
     public void putArchiveEntry(final ArchiveEntry archiveEntry) throws IOException {
-        putArchiveEntry(archiveEntry, false);
+        putArchiveEntry((ZipArchiveEntry) archiveEntry, false);
     }
 
     /**
@@ -1313,7 +1313,7 @@ public class ZipArchiveOutputStream extends ArchiveOutputStream {
      * compressed size is known to exceed 4 GByte and {@link #setUseZip64}
      * is {@link Zip64Mode#Never}.
      */
-    private void putArchiveEntry(final ArchiveEntry archiveEntry, final boolean phased) throws IOException {
+    private void putArchiveEntry(final ZipArchiveEntry archiveEntry, final boolean phased) throws IOException {
         if (finished) {
             throw new IOException("Stream has already been finished");
         }
@@ -1322,7 +1322,7 @@ public class ZipArchiveOutputStream extends ArchiveOutputStream {
             closeArchiveEntry();
         }
 
-        entry = new CurrentEntry((ZipArchiveEntry) archiveEntry);
+        entry = new CurrentEntry(archiveEntry);
         entries.add(entry.entry);
 
         setDefaults(entry.entry);
@@ -1358,7 +1358,7 @@ public class ZipArchiveOutputStream extends ArchiveOutputStream {
             def.setLevel(level);
             hasCompressionLevelChanged = false;
         }
-        writeLocalFileHeader((ZipArchiveEntry) archiveEntry, phased);
+        writeLocalFileHeader(archiveEntry, phased);
     }
 
     /**