Fixing javadoc to use the right exception types. Related to LANG-686

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1151343 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index f0616e2..6f81905 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -3907,7 +3907,7 @@
      *            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 @@
      *  (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 @@
      *            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 @@
      *  (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 @@
      *            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