scolebourne    2004/10/07 17:11:22

  Modified:    lang/src/java/org/apache/commons/lang StringUtils.java
  Log:
  Add since tags for 2.1 and fix Javadoc
  
  Revision  Changes    Path
  1.136     +10 -8     
jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java
  
  Index: StringUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java,v
  retrieving revision 1.135
  retrieving revision 1.136
  diff -u -r1.135 -r1.136
  --- StringUtils.java  2 Sep 2004 19:16:18 -0000       1.135
  +++ StringUtils.java  8 Oct 2004 00:11:22 -0000       1.136
  @@ -808,7 +808,7 @@
        * @param ordinal  the n-th <code>searchStr</code> to find
        * @return the n-th index of the search String,
        *  <code>-1</code> (<code>INDEX_NOT_FOUND</code>) if no match or 
<code>null</code> string input
  -     * @since 2.?.?
  +     * @since 2.1
        */
       public static int ordinalIndexOf(String str, String searchStr, int ordinal) {
           if (str == null || searchStr == null || ordinal <= 0) {
  @@ -1948,7 +1948,7 @@
        *
        * <p>The separator is not included in the returned String array.
        * Adjacent separators are treated as one separator.
  -     * For more control over the split use the Tokenizer class.</p>
  +     * For more control over the split use the StrTokenizer class.</p>
        *
        * <p>A <code>null</code> input String returns <code>null</code>.</p>
        *
  @@ -1973,7 +1973,7 @@
        *
        * <p>The separator is not included in the returned String array.
        * Adjacent separators are treated as one separator.
  -     * For more control over the split use the Tokenizer class.</p>
  +     * For more control over the split use the StrTokenizer class.</p>
        *
        * <p>A <code>null</code> input String returns <code>null</code>.</p>
        *
  @@ -2003,7 +2003,7 @@
        *
        * <p>The separator is not included in the returned String array.
        * Adjacent separators are treated as one separator.
  -     * For more control over the split use the Tokenizer class.</p>
  +     * For more control over the split use the StrTokenizer class.</p>
        *
        * <p>A <code>null</code> input String returns <code>null</code>.
        * A <code>null</code> separatorChars splits on whitespace.</p>
  @@ -2182,7 +2182,7 @@
        *
        * <p>The separator is not included in the returned String array.
        * Adjacent separators are treated as separators for empty tokens.
  -     * For more control over the split use the Tokenizer class.</p>
  +     * For more control over the split use the StrTokenizer class.</p>
        *
        * <p>A <code>null</code> input String returns <code>null</code>.</p>
        *
  @@ -2209,7 +2209,7 @@
        *
        * <p>The separator is not included in the returned String array.
        * Adjacent separators are treated as separators for empty tokens.
  -     * For more control over the split use the Tokenizer class.</p>
  +     * For more control over the split use the StrTokenizer class.</p>
        *
        * <p>A <code>null</code> input String returns <code>null</code>.</p>
        *
  @@ -2292,7 +2292,7 @@
        *
        * <p>The separator is not included in the returned String array.
        * Adjacent separators are treated as separators for empty tokens.
  -     * For more control over the split use the Tokenizer class.</p>
  +     * For more control over the split use the StrTokenizer class.</p>
        *
        * <p>A <code>null</code> input String returns <code>null</code>.
        * A <code>null</code> separatorChars splits on whitespace.</p>
  @@ -2316,6 +2316,7 @@
        * @param separatorChars  the characters used as the delimiters,
        *  <code>null</code> splits on whitespace
        * @return an array of parsed Strings, <code>null</code> if null String input
  +     * @since 2.1
        */
       public static String[] splitPreserveAllTokens(String str, String 
separatorChars) {
           return splitWorker(str, separatorChars, -1, true);
  @@ -2355,6 +2356,7 @@
        * @param max  the maximum number of elements to include in the
        *  array. A zero or negative value implies no limit
        * @return an array of parsed Strings, <code>null</code> if null String input
  +     * @since 2.1
        */
       public static String[] splitPreserveAllTokens(String str, String 
separatorChars, int max) {
           return splitWorker(str, separatorChars, max, true);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to