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 2022/09/30 13:32:52 UTC
[commons-compress] branch master updated: Better exception message
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 2fb4724c Better exception message
2fb4724c is described below
commit 2fb4724cad992421ba5e32cd021849c5e9fc30c7
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Sep 30 09:32:47 2022 -0400
Better exception message
---
.../apache/commons/compress/archivers/zip/ZipArchiveInputStream.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 7503e2aa..bd98ba10 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
@@ -293,7 +293,7 @@ public class ZipArchiveInputStream extends ArchiveInputStream implements InputSt
skipRemainderOfArchive();
return null;
}
- throw new ZipException(String.format("Unexpected record signature: 0X%X", sig.getValue()));
+ throw new ZipException(String.format("Unexpected record signature: 0x%x", sig.getValue()));
}
int off = WORD;