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/16 20:40:49 UTC
(commons-compress) branch master updated: Revert "Remove unused private instance variable"
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 7e3c28c93 Revert "Remove unused private instance variable"
7e3c28c93 is described below
commit 7e3c28c9387ce47f6d6ea6b1b025f5f857f6b421
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Mon Dec 16 15:40:31 2024 -0500
Revert "Remove unused private instance variable"
This reverts commit 242359980887142ff1b79efc22f259c89e2aa2a4.
---
.../commons/compress/archivers/cpio/CpioArchiveOutputStream.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java
index c2b56c216..be57b664c 100644
--- a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java
@@ -90,6 +90,9 @@ public class CpioArchiveOutputStream extends ArchiveOutputStream<CpioArchiveEntr
*/
private final ZipEncoding zipEncoding;
+ // the provided encoding (for unit tests)
+ final String charsetName;
+
/**
* Constructs the cpio output stream. The format for this CPIO stream is the "new" format using ASCII encoding for file names
*
@@ -145,6 +148,7 @@ public class CpioArchiveOutputStream extends ArchiveOutputStream<CpioArchiveEntr
}
this.entryFormat = format;
this.blockSize = blockSize;
+ this.charsetName = encoding;
this.zipEncoding = ZipEncodingHelper.getZipEncoding(encoding);
}