Author: niallp
Date: Sat Jan 5 07:53:33 2008
New Revision: 609159
URL: http://svn.apache.org/viewvc?rev=609159&view=rev
Log:
IO-148 rename CausedIOException to IOExceptionWithCause
Added:
commons/proper/io/trunk/src/java/org/apache/commons/io/IOExceptionWithCause.java
- copied, changed from r609128,
commons/proper/io/trunk/src/java/org/apache/commons/io/CausedIOException.java
commons/proper/io/trunk/src/test/org/apache/commons/io/IOExceptionWithCauseTestCase.java
- copied, changed from r609128,
commons/proper/io/trunk/src/test/org/apache/commons/io/CausedIOExceptionTestCase.java
Removed:
commons/proper/io/trunk/src/java/org/apache/commons/io/CausedIOException.java
commons/proper/io/trunk/src/test/org/apache/commons/io/CausedIOExceptionTestCase.java
Modified:
commons/proper/io/trunk/build-check-jdk13.xml
commons/proper/io/trunk/src/test/org/apache/commons/io/PackageTestSuite.java
Modified: commons/proper/io/trunk/build-check-jdk13.xml
URL:
http://svn.apache.org/viewvc/commons/proper/io/trunk/build-check-jdk13.xml?rev=609159&r1=609158&r2=609159&view=diff
==============================================================================
--- commons/proper/io/trunk/build-check-jdk13.xml (original)
+++ commons/proper/io/trunk/build-check-jdk13.xml Sat Jan 5 07:53:33 2008
@@ -62,6 +62,7 @@
<include name="**/*.java"/>
<exclude name="**/CharSequenceReader.java"/>
+ <exclude name="**/IOExceptionWithCause.java"/>
<exclude name="**/RegexFileFilter.java"/>
</javac>
Copied:
commons/proper/io/trunk/src/java/org/apache/commons/io/IOExceptionWithCause.java
(from r609128,
commons/proper/io/trunk/src/java/org/apache/commons/io/CausedIOException.java)
URL:
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/java/org/apache/commons/io/IOExceptionWithCause.java?p2=commons/proper/io/trunk/src/java/org/apache/commons/io/IOExceptionWithCause.java&p1=commons/proper/io/trunk/src/java/org/apache/commons/io/CausedIOException.java&r1=609128&r2=609159&rev=609159&view=diff
==============================================================================
---
commons/proper/io/trunk/src/java/org/apache/commons/io/CausedIOException.java
(original)
+++
commons/proper/io/trunk/src/java/org/apache/commons/io/IOExceptionWithCause.java
Sat Jan 5 07:53:33 2008
@@ -23,12 +23,11 @@
* Subclasses IOException with the [EMAIL PROTECTED] Throwable} constructors
missing before Java 6. If you are using Java 6,
* consider this class deprecated and use [EMAIL PROTECTED] IOException}.
*
- * @see <a href="mailto:[EMAIL PROTECTED]">Apache Commons Users List</a>
* @author <a href="http://commons.apache.org/io/">Apache Commons IO</a>
- * @version $Id: $
+ * @version $Id$
* @since 1.4
*/
-public class CausedIOException extends IOException {
+public class IOExceptionWithCause extends IOException {
/**
* Defines the serial version UID.
@@ -47,7 +46,7 @@
* @param cause
* the cause (see [EMAIL PROTECTED] #getCause()}). A
<code>null</code> value is allowed.
*/
- public CausedIOException(String message, Throwable cause) {
+ public IOExceptionWithCause(String message, Throwable cause) {
super(message);
this.initCause(cause);
}
@@ -62,7 +61,7 @@
* @param cause
* the cause (see [EMAIL PROTECTED] #getCause()}). A
<code>null</code> value is allowed.
*/
- public CausedIOException(Throwable cause) {
+ public IOExceptionWithCause(Throwable cause) {
super(cause == null ? null : cause.toString());
this.initCause(cause);
}
Copied:
commons/proper/io/trunk/src/test/org/apache/commons/io/IOExceptionWithCauseTestCase.java
(from r609128,
commons/proper/io/trunk/src/test/org/apache/commons/io/CausedIOExceptionTestCase.java)
URL:
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/IOExceptionWithCauseTestCase.java?p2=commons/proper/io/trunk/src/test/org/apache/commons/io/IOExceptionWithCauseTestCase.java&p1=commons/proper/io/trunk/src/test/org/apache/commons/io/CausedIOExceptionTestCase.java&r1=609128&r2=609159&rev=609159&view=diff
==============================================================================
---
commons/proper/io/trunk/src/test/org/apache/commons/io/CausedIOExceptionTestCase.java
(original)
+++
commons/proper/io/trunk/src/test/org/apache/commons/io/IOExceptionWithCauseTestCase.java
Sat Jan 5 07:53:33 2008
@@ -20,28 +20,28 @@
import junit.framework.TestCase;
/**
- * Tests CausedIOException
+ * Tests IOExceptionWithCause
*
* @author <a href="mailto:[EMAIL PROTECTED]">Gary Gregory</a>
* @version $Id: $
*/
-public class CausedIOExceptionTestCase extends TestCase {
+public class IOExceptionWithCauseTestCase extends TestCase {
/**
- * Tests the [EMAIL PROTECTED]
CausedIOException#CausedIOException(String,Throwable)} constructor.
+ * Tests the [EMAIL PROTECTED]
IOExceptionWithCause#IOExceptionWithCause(String,Throwable)} constructor.
*/
public void testIOExceptionStringThrowable() {
Throwable cause = new IllegalArgumentException("cause");
- CausedIOException exception = new CausedIOException("message", cause);
+ IOExceptionWithCause exception = new IOExceptionWithCause("message",
cause);
this.validate(exception, cause, "message");
}
/**
- * Tests the [EMAIL PROTECTED]
CausedIOException#CausedIOException(Throwable)} constructor.
+ * Tests the [EMAIL PROTECTED]
IOExceptionWithCause#IOExceptionWithCause(Throwable)} constructor.
*/
public void testIOExceptionThrowable() {
Throwable cause = new IllegalArgumentException("cause");
- CausedIOException exception = new CausedIOException(cause);
+ IOExceptionWithCause exception = new IOExceptionWithCause(cause);
this.validate(exception, cause, "java.lang.IllegalArgumentException:
cause");
}
Modified:
commons/proper/io/trunk/src/test/org/apache/commons/io/PackageTestSuite.java
URL:
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/PackageTestSuite.java?rev=609159&r1=609158&r2=609159&view=diff
==============================================================================
---
commons/proper/io/trunk/src/test/org/apache/commons/io/PackageTestSuite.java
(original)
+++
commons/proper/io/trunk/src/test/org/apache/commons/io/PackageTestSuite.java
Sat Jan 5 07:53:33 2008
@@ -35,7 +35,7 @@
public static Test suite() {
TestSuite suite = new TestSuite("IO Utilities");
- suite.addTest(new TestSuite(CausedIOExceptionTestCase.class));
+ suite.addTest(new TestSuite(IOExceptionWithCauseTestCase.class));
suite.addTest(new TestSuite(CopyUtilsTest.class));
suite.addTest(new TestSuite(DemuxTestCase.class));
suite.addTest(new TestSuite(DirectoryWalkerTestCase.class));