You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by bo...@apache.org on 2009/04/07 13:45:37 UTC
svn commit: r762708 - in
/incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat:
analysis/ document/ report/
Author: bodewig
Date: Tue Apr 7 11:45:37 2009
New Revision: 762708
URL: http://svn.apache.org/viewvc?rev=762708&view=rev
Log:
remove reference to commons-lang Nestable since it is going to be dropped from future releases
Modified:
incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/RatHeaderAnalysisException.java
incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/RatDocumentAnalysisException.java
incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/UnreadableArchiveException.java
incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/RatReportFailedException.java
Modified: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/RatHeaderAnalysisException.java
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/RatHeaderAnalysisException.java?rev=762708&r1=762707&r2=762708&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/RatHeaderAnalysisException.java (original)
+++ incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/RatHeaderAnalysisException.java Tue Apr 7 11:45:37 2009
@@ -18,13 +18,11 @@
*/
package org.apache.rat.analysis;
-import org.apache.commons.lang.exception.NestableException;
-
/**
* Indicates exceptional condition during header analysis.
*
*/
-public class RatHeaderAnalysisException extends NestableException {
+public class RatHeaderAnalysisException extends Exception {
private static final long serialVersionUID = 7613577476983281387L;
Modified: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/RatDocumentAnalysisException.java
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/RatDocumentAnalysisException.java?rev=762708&r1=762707&r2=762708&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/RatDocumentAnalysisException.java (original)
+++ incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/RatDocumentAnalysisException.java Tue Apr 7 11:45:37 2009
@@ -18,9 +18,7 @@
*/
package org.apache.rat.document;
-import org.apache.commons.lang.exception.NestableException;
-
-public class RatDocumentAnalysisException extends NestableException {
+public class RatDocumentAnalysisException extends Exception {
private static final long serialVersionUID = 2339068944003517510L;
Modified: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/UnreadableArchiveException.java
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/UnreadableArchiveException.java?rev=762708&r1=762707&r2=762708&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/UnreadableArchiveException.java (original)
+++ incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/UnreadableArchiveException.java Tue Apr 7 11:45:37 2009
@@ -22,22 +22,16 @@
import java.io.PrintStream;
import java.io.PrintWriter;
-import org.apache.commons.lang.exception.Nestable;
-import org.apache.commons.lang.exception.NestableDelegate;
-
/**
* Indicates that an archive is unreadable.
*
*/
-public class UnreadableArchiveException extends IOException implements Nestable {
+public class UnreadableArchiveException extends IOException {
private static final String MESSAGE = "Archive is unreadable";
private static final long serialVersionUID = -1556313036805276658L;
- private final NestableDelegate delegate = new NestableDelegate(this);
- private final Throwable cause;
-
public UnreadableArchiveException() {
this(MESSAGE, null);
}
@@ -52,71 +46,7 @@
public UnreadableArchiveException(String s, Throwable cause) {
super(s);
- this.cause = cause;
- }
-
- public Throwable getCause() {
- return cause;
+ initCause(cause);
}
- public String getMessage() {
- final String result = super.getMessage();
- return result;
- }
-
- public String getMessage(int index) {
- String result = null;
- if (index == 0) {
- result = getMessage();
- } else {
- result = delegate.getMessage(index);
- }
- return result;
- }
-
- public String[] getMessages() {
- final String[] messages = delegate.getMessages();
- return messages;
- }
-
- public Throwable getThrowable(int index) {
- final Throwable result = delegate.getThrowable(index);
- return result;
- }
-
- public int getThrowableCount() {
- final int throwableCount = delegate.getThrowableCount();
- return throwableCount;
- }
-
- public Throwable[] getThrowables() {
- final Throwable[] throwables = delegate.getThrowables();
- return throwables;
- }
-
- public int indexOfThrowable(Class type) {
- final int result = delegate.indexOfThrowable(type, 0);
- return result;
- }
-
- public int indexOfThrowable(Class type, int fromIndex) {
- final int result = delegate.indexOfThrowable(type, fromIndex);
- return result;
- }
-
- public void printStackTrace() {
- delegate.printStackTrace();
- }
-
- public void printStackTrace(PrintStream s) {
- delegate.printStackTrace(s);
- }
-
- public void printStackTrace(PrintWriter s) {
- delegate.printStackTrace(s);
- }
-
- public void printPartialStackTrace(PrintWriter out) {
- super.printStackTrace(out);
- }
}
Modified: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/RatReportFailedException.java
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/RatReportFailedException.java?rev=762708&r1=762707&r2=762708&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/RatReportFailedException.java (original)
+++ incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/RatReportFailedException.java Tue Apr 7 11:45:37 2009
@@ -18,9 +18,7 @@
*/
package org.apache.rat.report;
-import org.apache.commons.lang.exception.NestableException;
-
-public class RatReportFailedException extends NestableException {
+public class RatReportFailedException extends Exception {
private static final long serialVersionUID = 4940711222435919034L;