donaldp 2002/10/20 17:43:45 Modified: src/java/org/apache/avalon/framework ExceptionUtil.java Log: Remove deprecation warning by hiding uysage of method behind a non deprecated internal method Revision Changes Path 1.16 +13 -1 jakarta-avalon/src/java/org/apache/avalon/framework/ExceptionUtil.java Index: ExceptionUtil.java =================================================================== RCS file: /home/cvs/jakarta-avalon/src/java/org/apache/avalon/framework/ExceptionUtil.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- ExceptionUtil.java 5 Aug 2002 13:23:55 -0000 1.15 +++ ExceptionUtil.java 21 Oct 2002 00:43:45 -0000 1.16 @@ -191,7 +191,7 @@ { final StringWriter sw = new StringWriter(); throwable.printStackTrace( new PrintWriter( sw, true ) ); - return splitString( sw.toString(), LINE_SEPARATOR ); + return splitStringInternal( sw.toString(), LINE_SEPARATOR ); } /** @@ -203,6 +203,18 @@ * @deprecated This is an internal utility method that should not be used */ public static String[] splitString( final String string, final String onToken ) + { + return splitStringInternal( string, onToken ); + } + + /** + * Splits the string on every token into an array of stack frames. + * + * @param string the string to split + * @param onToken the token to split on + * @return the resultant array + */ + private static String[] splitStringInternal( final String string, final String onToken ) { final StringTokenizer tokenizer = new StringTokenizer( string, onToken ); final String[] result = new String[ tokenizer.countTokens() ];
-- To unsubscribe, e-mail: <mailto:avalon-cvs-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:avalon-cvs-help@;jakarta.apache.org>