You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by st...@apache.org on 2002/08/25 15:20:59 UTC
cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/exception NestableRuntimeException.java NestableException.java Nestable.java
stevencaswell 2002/08/25 06:20:59
Modified: lang/src/java/org/apache/commons/lang/exception
NestableRuntimeException.java
NestableException.java Nestable.java
Log:
removed deprecated methods getLength() and indexOfThrowable(int, Class)
Revision Changes Path
1.3 +1 -25 jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableRuntimeException.java
Index: NestableRuntimeException.java
===================================================================
RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableRuntimeException.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- NestableRuntimeException.java 26 Jul 2002 20:30:10 -0000 1.2
+++ NestableRuntimeException.java 25 Aug 2002 13:20:59 -0000 1.3
@@ -140,14 +140,6 @@
return cause;
}
- /**
- * @deprecated replaced by {@link #getThrowableCount()}
- */
- public int getLength()
- {
- return delegate.getThrowableCount();
- }
-
public String getMessage()
{
StringBuffer msg = new StringBuffer();
@@ -212,22 +204,6 @@
public int indexOfThrowable(Class type, int fromIndex)
{
return delegate.indexOfThrowable(type, fromIndex);
- }
-
- /**
- * @deprecated replaced by {@link #indexOfThrowable(Class, int)}
- */
- public int indexOfThrowable(int pos, Class type)
- {
- if(pos < 0)
- {
- pos = 0;
- }
- else if(pos >= this.getThrowableCount())
- {
- pos = this.getThrowableCount() - 1;
- }
- return delegate.indexOfThrowable(type, pos);
}
public void printStackTrace()
1.3 +1 -25 jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableException.java
Index: NestableException.java
===================================================================
RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableException.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- NestableException.java 26 Jul 2002 20:30:10 -0000 1.2
+++ NestableException.java 25 Aug 2002 13:20:59 -0000 1.3
@@ -193,14 +193,6 @@
return cause;
}
- /**
- * @deprecated replaced by {@link #getThrowableCount()}
- */
- public int getLength()
- {
- return delegate.getThrowableCount();
- }
-
public String getMessage()
{
StringBuffer msg = new StringBuffer();
@@ -267,22 +259,6 @@
return delegate.indexOfThrowable(type, fromIndex);
}
- /**
- * @deprecated replaced by {@link #indexOfThrowable(Class, int)}
- */
- public int indexOfThrowable(int pos, Class type)
- {
- if(pos < 0)
- {
- pos = 0;
- }
- else if(pos >= this.getThrowableCount())
- {
- pos = this.getThrowableCount() - 1;
- }
- return delegate.indexOfThrowable(type, pos);
- }
-
public void printStackTrace()
{
delegate.printStackTrace();
1.3 +1 -27 jakarta-commons/lang/src/java/org/apache/commons/lang/exception/Nestable.java
Index: Nestable.java
===================================================================
RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/Nestable.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Nestable.java 26 Jul 2002 20:30:10 -0000 1.2
+++ Nestable.java 25 Aug 2002 13:20:59 -0000 1.3
@@ -75,13 +75,6 @@
public Throwable getCause();
/**
- * Returns the number of nested <code>Throwable</code>s represented by
- * this <code>Nestable</code>, including this <code>Nestable</code>.
- * @deprecated replaced by {@link #getThrowableCount()}
- */
- public int getLength();
-
- /**
* Returns the error message of this and any nested
* <code>Throwable</code>.
*
@@ -172,25 +165,6 @@
* chain
*/
public int indexOfThrowable(Class type, int fromIndex);
-
- /**
- * Returns the index, numbered from 0, of the first <code>Throwable</code>
- * that matches the specified type in the chain of <code>Throwable</code>s
- * with an index greater than or equal to the specified position, or -1 if
- * the type is not found. If <code>pos</code> is negative, the effect is the
- * same as if it were 0. If <code>pos</code> is greater than or equal to the
- * length of the chain, the effect is the same as if it were the index of
- * the last element in the chain.
- *
- * @param pos index, numbered from 0, of the starting position in the chain
- * to be searched
- * @param type <code>Class</code> to be found
- *
- * @return index of the first occurrence of the type in the chain, or -1 if
- * the type is not found
- * @deprecated replaced by {@link #indexOfThrowable(Class, int)}
- */
- public int indexOfThrowable(int pos, Class type);
/**
* Prints the stack trace of this exception to the specified print
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>