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 23efb2d8e1649c5f0f7fb7200c078740664d7b8d
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Jan 16 09:33:46 2024 -0500

    Use propagated exception API
---
 .../java/org/apache/commons/compress/archivers/ArchiveException.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/compress/archivers/ArchiveException.java 
b/src/main/java/org/apache/commons/compress/archivers/ArchiveException.java
index 59d002b90..1c2248ccf 100644
--- a/src/main/java/org/apache/commons/compress/archivers/ArchiveException.java
+++ b/src/main/java/org/apache/commons/compress/archivers/ArchiveException.java
@@ -42,7 +42,6 @@ public class ArchiveException extends Exception {
      * @param cause   the cause
      */
     public ArchiveException(final String message, final Exception cause) {
-        super(message);
-        this.initCause(cause);
+        super(message, cause);
     }
 }

Reply via email to