commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1151343 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Wed, 27 Jul 2011 05:59:01 GMT
Author: bayard
Date: Wed Jul 27 05:59:00 2011
New Revision: 1151343

URL: http://svn.apache.org/viewvc?rev=1151343&view=rev
Log:
Fixing javadoc to use the right exception types. Related to LANG-686

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=1151343&r1=1151342&r2=1151343&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Wed
Jul 27 05:59:00 2011
@@ -3907,7 +3907,7 @@ public class StringUtils {
      *            the Strings to replace them with, no-op if null
      * @return the text with any replacements processed, {@code null} if
      *         null String input
-     * @throws IndexOutOfBoundsException
+     * @throws IllegalArgumentException
      *             if the lengths of the arrays are not the same (null is ok,
      *             and/or size 0)
      * @since 2.4
@@ -3940,7 +3940,7 @@ public class StringUtils {
      *  (example of how it repeats)
      *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "t"},
false) = "dcte"
      *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "t"},
true) = "tcte"
-     *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "ab"},
true) = IllegalArgumentException
+     *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "ab"},
true) = IllegalStateException
      *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "ab"},
false) = "dcabe"
      * </pre>
      *
@@ -3952,10 +3952,10 @@ public class StringUtils {
      *            the Strings to replace them with, no-op if null
      * @return the text with any replacements processed, {@code null} if
      *         null String input
-     * @throws IllegalArgumentException
+     * @throws IllegalStateException
      *             if the search is repeating and there is an endless loop due
      *             to outputs of one being inputs to another
-     * @throws IndexOutOfBoundsException
+     * @throws IllegalArgumentException
      *             if the lengths of the arrays are not the same (null is ok,
      *             and/or size 0)
      * @since 2.4
@@ -3991,7 +3991,7 @@ public class StringUtils {
      *  (example of how it repeats)
      *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "t"},
false) = "dcte"
      *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "t"},
true) = "tcte"
-     *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "ab"},
*) = IllegalArgumentException
+     *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "ab"},
*) = IllegalStateException
      * </pre>
      *
      * @param text
@@ -4007,10 +4007,10 @@ public class StringUtils {
      *            loop
      * @return the text with any replacements processed, {@code null} if
      *         null String input
-     * @throws IllegalArgumentException
+     * @throws IllegalStateException
      *             if the search is repeating and there is an endless loop due
      *             to outputs of one being inputs to another
-     * @throws IndexOutOfBoundsException
+     * @throws IllegalArgumentException
      *             if the lengths of the arrays are not the same (null is ok,
      *             and/or size 0)
      * @since 2.4



Mime
View raw message