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/15 18:12:34 UTC

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

Author: sebb
Date: Wed Dec  3 13:05:23 2014
New Revision: 1643107

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

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOExceptionWithCause.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOExceptionWithCause.java?rev=1643107&r1=1643106&r2=1643107&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOExceptionWithCause.java (original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOExceptionWithCause.java Wed Dec  3 13:05:23 2014
@@ -47,8 +47,7 @@ public class IOExceptionWithCause extend
      *            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 @@ public class IOExceptionWithCause extend
      *            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);
     }
 
 }