Skip to content

Commit 479be9e

Browse files
committed
Javadoc
1 parent 9da3c6a commit 479be9e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/main/java/org/apache/commons/lang3/ArrayUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ public static short[] add(final short[] array, final short element) {
756756
* whose component type is the same as the element.
757757
* </p>
758758
* <pre>
759-
* ArrayUtils.add(null, 0, null) = IllegalArgumentException
759+
* ArrayUtils.add(null, 0, null) = Throws {@link IllegalArgumentException}
760760
* ArrayUtils.add(null, 0, "a") = ["a"]
761761
* ArrayUtils.add(["a"], 1, null) = ["a", null]
762762
* ArrayUtils.add(["a"], 1, "b") = ["a", "b"]
@@ -800,7 +800,7 @@ public static <T> T[] add(final T[] array, final int index, final T element) {
800800
* in which case the return type is Object[]
801801
* </p>
802802
* <pre>
803-
* ArrayUtils.add(null, null) = IllegalArgumentException
803+
* ArrayUtils.add(null, null) = Throws {@link IllegalArgumentException}
804804
* ArrayUtils.add(null, "a") = ["a"]
805805
* ArrayUtils.add(["a"], null) = ["a", null]
806806
* ArrayUtils.add(["a"], "b") = ["a", "b"]
@@ -1360,7 +1360,7 @@ public static short[] addFirst(final short[] array, final short element) {
13601360
* element, unless the element itself is null, in which case the return type is Object[]
13611361
* </p>
13621362
* <pre>
1363-
* ArrayUtils.addFirst(null, null) = IllegalArgumentException
1363+
* ArrayUtils.addFirst(null, null) = Throws {@link IllegalArgumentException}
13641364
* ArrayUtils.addFirst(null, "a") = ["a"]
13651365
* ArrayUtils.addFirst(["a"], null) = [null, "a"]
13661366
* ArrayUtils.addFirst(["a"], "b") = ["b", "a"]

src/main/java/org/apache/commons/lang3/StringUtils.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,7 +2063,7 @@ public static String getDigits(final String str) {
20632063
* </p>
20642064
*
20652065
* <pre>
2066-
* StringUtils.getFuzzyDistance(null, null, null) = IllegalArgumentException
2066+
* StringUtils.getFuzzyDistance(null, null, null) = Throws {@link IllegalArgumentException}
20672067
* StringUtils.getFuzzyDistance("", "", Locale.ENGLISH) = 0
20682068
* StringUtils.getFuzzyDistance("Workshop", "b", Locale.ENGLISH) = 0
20692069
* StringUtils.getFuzzyDistance("Room", "o", Locale.ENGLISH) = 1
@@ -2205,7 +2205,7 @@ public static <T extends CharSequence> T getIfEmpty(final T str, final Supplier<
22052205
* </p>
22062206
*
22072207
* <pre>
2208-
* StringUtils.getJaroWinklerDistance(null, null) = IllegalArgumentException
2208+
* StringUtils.getJaroWinklerDistance(null, null) = Throws {@link IllegalArgumentException}
22092209
* StringUtils.getJaroWinklerDistance("", "") = 0.0
22102210
* StringUtils.getJaroWinklerDistance("", "a") = 0.0
22112211
* StringUtils.getJaroWinklerDistance("aaapppp", "") = 0.0
@@ -2263,8 +2263,8 @@ public static double getJaroWinklerDistance(final CharSequence first, final Char
22632263
* </p>
22642264
*
22652265
* <pre>
2266-
* StringUtils.getLevenshteinDistance(null, *) = IllegalArgumentException
2267-
* StringUtils.getLevenshteinDistance(*, null) = IllegalArgumentException
2266+
* StringUtils.getLevenshteinDistance(null, *) = Throws {@link IllegalArgumentException}
2267+
* StringUtils.getLevenshteinDistance(*, null) = Throws {@link IllegalArgumentException}
22682268
* StringUtils.getLevenshteinDistance("", "") = 0
22692269
* StringUtils.getLevenshteinDistance("", "a") = 1
22702270
* StringUtils.getLevenshteinDistance("aaapppp", "") = 7
@@ -2355,9 +2355,9 @@ public static int getLevenshteinDistance(CharSequence s, CharSequence t) {
23552355
* </p>
23562356
*
23572357
* <pre>
2358-
* StringUtils.getLevenshteinDistance(null, *, *) = IllegalArgumentException
2359-
* StringUtils.getLevenshteinDistance(*, null, *) = IllegalArgumentException
2360-
* StringUtils.getLevenshteinDistance(*, *, -1) = IllegalArgumentException
2358+
* StringUtils.getLevenshteinDistance(null, *, *) = Throws {@link IllegalArgumentException}
2359+
* StringUtils.getLevenshteinDistance(*, null, *) = Throws {@link IllegalArgumentException}
2360+
* StringUtils.getLevenshteinDistance(*, *, -1) = Throws {@link IllegalArgumentException}
23612361
* StringUtils.getLevenshteinDistance("", "", 0) = 0
23622362
* StringUtils.getLevenshteinDistance("aaapppp", "", 8) = 7
23632363
* StringUtils.getLevenshteinDistance("aaapppp", "", 7) = 7
@@ -6385,7 +6385,7 @@ public static String replaceEach(final String text, final String[] searchList, f
63856385
* (example of how it repeats)
63866386
* StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "t"}, false, >=0) = "dcte"
63876387
* StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "t"}, true, >=2) = "tcte"
6388-
* StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "ab"}, *, *) = IllegalStateException
6388+
* StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "ab"}, *, *) = Throws {@link IllegalStateException}
63896389
* </pre>
63906390
*
63916391
* @param text text to search and replace in, no-op if null.
@@ -6536,7 +6536,7 @@ private static String replaceEach(
65366536
* StringUtils.replaceEachRepeatedly("abcde", new String[]{"ab", "d"}, new String[]{"w", "t"}) = "wcte"
65376537
* (example of how it repeats)
65386538
* StringUtils.replaceEachRepeatedly("abcde", new String[]{"ab", "d"}, new String[]{"d", "t"}) = "tcte"
6539-
* StringUtils.replaceEachRepeatedly("abcde", new String[]{"ab", "d"}, new String[]{"d", "ab"}) = IllegalStateException
6539+
* StringUtils.replaceEachRepeatedly("abcde", new String[]{"ab", "d"}, new String[]{"d", "ab"}) = Throws {@link IllegalStateException}
65406540
* </pre>
65416541
*
65426542
* @param text text to search and replace in, no-op if null.

0 commit comments

Comments
 (0)