Author: sebb
Date: Tue Dec  2 02:55:39 2014
New Revision: 1642799

URL: http://svn.apache.org/r1642799
Log:
No longer needed in Java 6+

Modified:
    
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java
    
commons/proper/io/trunk/src/main/java/org/apache/commons/io/TaggedIOException.java
    
commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOExceptionWithCauseTestCase.java

Modified: 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java?rev=1642799&r1=1642798&r2=1642799&view=diff
==============================================================================
--- 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java
 (original)
+++ 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java
 Tue Dec  2 02:55:39 2014
@@ -444,7 +444,7 @@ public class FileSystemUtils {
             return bytes;
 
         } catch (final NumberFormatException ex) {
-            throw new IOExceptionWithCause(
+            throw new IOException(
                     "Command line '" + DF + "' did not return numeric data as 
expected " +
                     "for path '" + path + "'- check path is valid", ex);
         }
@@ -512,7 +512,7 @@ public class FileSystemUtils {
             return lines;
 
         } catch (final InterruptedException ex) {
-            throw new IOExceptionWithCause(
+            throw new IOException(
                     "Command line threw an InterruptedException " +
                     "for command " + Arrays.asList(cmdAttribs) + " timeout=" + 
timeout, ex);
         } finally {

Modified: 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/TaggedIOException.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/TaggedIOException.java?rev=1642799&r1=1642798&r2=1642799&view=diff
==============================================================================
--- 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/TaggedIOException.java
 (original)
+++ 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/TaggedIOException.java
 Tue Dec  2 02:55:39 2014
@@ -26,7 +26,7 @@ import java.io.Serializable;
  *
  * @since 2.0
  */
-public class TaggedIOException extends IOExceptionWithCause {
+public class TaggedIOException extends IOException {
 
     /**
      * Generated serial version UID.

Modified: 
commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOExceptionWithCauseTestCase.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOExceptionWithCauseTestCase.java?rev=1642799&r1=1642798&r2=1642799&view=diff
==============================================================================
--- 
commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOExceptionWithCauseTestCase.java
 (original)
+++ 
commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOExceptionWithCauseTestCase.java
 Tue Dec  2 02:55:39 2014
@@ -17,6 +17,8 @@
 
 package org.apache.commons.io;
 
+import java.io.IOException;
+
 import junit.framework.TestCase;
 
 /**
@@ -31,7 +33,7 @@ public class IOExceptionWithCauseTestCas
      */
     public void testIOExceptionStringThrowable() {
         final Throwable cause = new IllegalArgumentException("cause");
-        final IOExceptionWithCause exception = new 
IOExceptionWithCause("message", cause);
+        final IOException exception = new IOException("message", cause);
         this.validate(exception, cause, "message");
     }
 
@@ -40,7 +42,7 @@ public class IOExceptionWithCauseTestCas
      */
     public void testIOExceptionThrowable() {
         final Throwable cause = new IllegalArgumentException("cause");
-        final IOExceptionWithCause exception = new IOExceptionWithCause(cause);
+        final IOException exception = new IOException(cause);
         this.validate(exception, cause, "java.lang.IllegalArgumentException: 
cause");
     }
 


Reply via email to