Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 24834 invoked from network); 25 Aug 2002 13:21:06 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Aug 2002 13:21:06 -0000 Received: (qmail 16140 invoked by uid 97); 25 Aug 2002 13:21:33 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 16099 invoked by uid 97); 25 Aug 2002 13:21:32 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 16087 invoked by uid 97); 25 Aug 2002 13:21:31 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: 25 Aug 2002 13:20:59 -0000 Message-ID: <20020825132059.1522.qmail@icarus.apache.org> From: stevencaswell@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/exception NestableRuntimeException.java NestableException.java Nestable.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 Throwables represented by - * this Nestable, including this Nestable. - * @deprecated replaced by {@link #getThrowableCount()} - */ - public int getLength(); - - /** * Returns the error message of this and any nested * Throwable. * @@ -172,25 +165,6 @@ * chain */ public int indexOfThrowable(Class type, int fromIndex); - - /** - * Returns the index, numbered from 0, of the first Throwable - * that matches the specified type in the chain of Throwables - * with an index greater than or equal to the specified position, or -1 if - * the type is not found. If pos is negative, the effect is the - * same as if it were 0. If pos 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 Class 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: For additional commands, e-mail: