From f93ddafa96d62289ad9e635136cea5524e664d43 Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Fri, 13 Feb 2004 23:32:39 +0000 Subject: [PATCH] Add comment about new Tokenizer class in split method git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137785 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/commons/lang/StringUtils.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/commons/lang/StringUtils.java b/src/java/org/apache/commons/lang/StringUtils.java index 0fab4bb2f..6a6a2fa0d 100644 --- a/src/java/org/apache/commons/lang/StringUtils.java +++ b/src/java/org/apache/commons/lang/StringUtils.java @@ -148,7 +148,7 @@ * @author Phil Steitz * @author Al Chou * @since 1.0 - * @version $Id: StringUtils.java,v 1.122 2003/12/24 01:33:30 scolebourne Exp $ + * @version $Id: StringUtils.java,v 1.123 2004/02/13 23:32:39 scolebourne Exp $ */ public class StringUtils { // Performance testing notes (JDK 1.4, Jul03, scolebourne) @@ -1984,7 +1984,8 @@ public static String getNestedString(String str, String open, String close) { * Whitespace is defined by {@link Character#isWhitespace(char)}.

* *

The separator is not included in the returned String array. - * Adjacent separators are treated as one separator.

+ * Adjacent separators are treated as one separator. + * For more control over the split use the Tokenizer class.

* *

A null input String returns null.

* @@ -2008,7 +2009,8 @@ public static String[] split(String str) { * This is an alternative to using StringTokenizer.

* *

The separator is not included in the returned String array. - * Adjacent separators are treated as one separator.

+ * Adjacent separators are treated as one separator. + * For more control over the split use the Tokenizer class.

* *

A null input String returns null.

* @@ -2064,7 +2066,8 @@ public static String[] split(String str, char separatorChar) { * This is an alternative to using StringTokenizer.

* *

The separator is not included in the returned String array. - * Adjacent separators are treated as one separator.

+ * Adjacent separators are treated as one separator. + * For more control over the split use the Tokenizer class.

* *

A null input String returns null. * A null separatorChars splits on whitespace.