You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2014/12/06 17:44:09 UTC

[BACKUP] svn commit: r1643107 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOExceptionWithCause.java

Author: sebb
Date: 2014-12-03 13:05:23 +0000 (Wed, 03 Dec 2014)
New Revision: r1643107

URL: http://svn.apache.org/r1643107
Log:

IO-462 IOExceptionWithCause no longer needed
Simplify code

Modified:
    /commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOExceptionWithCause.java

Index: commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOExceptionWithCause.java
===================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOExceptionWithCause.java	(revision 1643106)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOExceptionWithCause.java	(revision 1643107)
@@ -47,8 +47,7 @@
      *            the cause (see {@link #getCause()}). A {@code null} value is allowed.
      */
     public IOExceptionWithCause(final String message, final Throwable cause) {
-        super(message);
-        this.initCause(cause);
+        super(message, cause);
     }
 
     /**
@@ -62,8 +61,7 @@
      *            the cause (see {@link #getCause()}). A {@code null} value is allowed.
      */
     public IOExceptionWithCause(final Throwable cause) {
-        super(cause == null ? null : cause.toString());
-        this.initCause(cause);
+        super(cause);
     }
 
 }