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 eb0c4d240030dc1998851f65b0209a9efb0d3acb Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Jun 4 09:16:19 2024 -0400 PMD UnusedPrivateField --- .../commons/compress/archivers/zip/ZipArchiveInputStream.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java index 40af2e351..bafe2b66c 100644 --- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java +++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java @@ -296,7 +296,7 @@ public class ZipArchiveInputStream extends ArchiveInputStream<ZipArchiveEntry> i /** * The factory for extra fields or null. */ - private Function<ZipShort, ZipExtraField> extraFieldSupport; + // private Function<ZipShort, ZipExtraField> extraFieldSupport; /** * Constructs an instance using UTF-8 encoding @@ -1249,12 +1249,14 @@ public class ZipArchiveInputStream extends ArchiveInputStream<ZipArchiveEntry> i } /** - * Enable custom extra fields factory. + * Currently unused. + * + * Sets the custom extra fields factory. * @param extraFieldSupport the lookup function based on extra field header id. * @return the archive. */ public ZipArchiveInputStream setExtraFieldSupport(final Function<ZipShort, ZipExtraField> extraFieldSupport) { - this.extraFieldSupport = extraFieldSupport; + // this.extraFieldSupport = extraFieldSupport; return this; }