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 2010/10/14 01:20:42 UTC
svn commit: r1022322 -
/commons/proper/io/trunk/src/main/java/org/apache/commons/io/LineIterator.java
Author: ggregory
Date: Wed Oct 13 23:20:42 2010
New Revision: 1022322
URL: http://svn.apache.org/viewvc?rev=1022322&view=rev
Log:
Now that we are on Java 5, we can use the Throwable version of the exception constructor and avoid loosing the original exception information.
Modified:
commons/proper/io/trunk/src/main/java/org/apache/commons/io/LineIterator.java
Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/LineIterator.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/LineIterator.java?rev=1022322&r1=1022321&r2=1022322&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/LineIterator.java (original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/LineIterator.java Wed Oct 13 23:20:42 2010
@@ -104,7 +104,7 @@ public class LineIterator implements Ite
}
} catch(IOException ioe) {
close();
- throw new IllegalStateException(ioe.toString());
+ throw new IllegalStateException(ioe);
}
}
}