Skip to content

Commit f8b03db

Browse files
authored
[javadoc] Improve StringUtils Javadoc (#1450)
1 parent 71c9052 commit f8b03db

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ public static int countMatches(final CharSequence str, final CharSequence sub) {
15221522
*
15231523
* @param <T> the specific kind of CharSequence.
15241524
* @param str the CharSequence to check, may be null.
1525-
* @param defaultStr the default CharSequence to return if {@code str} is {@link #isBlank(CharSequence) blank} (whitespaces, empty ({@code""}) or
1525+
* @param defaultStr the default CharSequence to return if {@code str} is {@link #isBlank(CharSequence) blank} (whitespaces, empty ({@code ""}) or
15261526
* {@code null}); may be null.
15271527
* @return the passed in CharSequence, or the default.
15281528
* @see StringUtils#defaultString(String, String)
@@ -1832,7 +1832,7 @@ public static boolean equalsAny(final CharSequence string, final CharSequence...
18321832
* @return {@code true} if the string is equal (case-insensitive) to any other element of {@code searchStrings};
18331833
* {@code false} if {@code searchStrings} is null or contains no matches.
18341834
* @since 3.5
1835-
* @deprecated Use {@link Strings#equalsAny(CharSequence, CharSequence...) Strings.CI-.equalsAny(CharSequence, CharSequence...)}
1835+
* @deprecated Use {@link Strings#equalsAny(CharSequence, CharSequence...) Strings.CI.equalsAny(CharSequence, CharSequence...)}
18361836
*/
18371837
@Deprecated
18381838
public static boolean equalsAnyIgnoreCase(final CharSequence string, final CharSequence... searchStrings) {
@@ -3129,7 +3129,7 @@ public static boolean isAllBlank(final CharSequence... css) {
31293129
}
31303130
for (final CharSequence cs : css) {
31313131
if (isNotBlank(cs)) {
3132-
return false;
3132+
return false;
31333133
}
31343134
}
31353135
return true;
@@ -3608,7 +3608,7 @@ public static boolean isMixedCase(final CharSequence cs) {
36083608
* @since 3.2
36093609
*/
36103610
public static boolean isNoneBlank(final CharSequence... css) {
3611-
return !isAnyBlank(css);
3611+
return !isAnyBlank(css);
36123612
}
36133613

36143614
/**
@@ -3632,7 +3632,7 @@ public static boolean isNoneBlank(final CharSequence... css) {
36323632
* @since 3.2
36333633
*/
36343634
public static boolean isNoneEmpty(final CharSequence... css) {
3635-
return !isAnyEmpty(css);
3635+
return !isAnyEmpty(css);
36363636
}
36373637

36383638
/**
@@ -5751,7 +5751,7 @@ public static String remove(final String str, final String remove) {
57515751
* @see java.util.regex.Pattern
57525752
* @see java.util.regex.Pattern#DOTALL
57535753
* @since 3.5
5754-
* @deprecated Moved to RegExUtils.
5754+
* @deprecated Use {@link RegExUtils#removeAll(String, String)}
57555755
*/
57565756
@Deprecated
57575757
public static String removeAll(final String text, final String regex) {
@@ -5803,8 +5803,8 @@ public static String removeEnd(final String str, final String remove) {
58035803
* StringUtils.removeEndIgnoreCase("www.domain.com", ".com") = "www.domain"
58045804
* StringUtils.removeEndIgnoreCase("www.domain.com", "domain") = "www.domain.com"
58055805
* StringUtils.removeEndIgnoreCase("abc", "") = "abc"
5806-
* StringUtils.removeEndIgnoreCase("www.domain.com", ".COM") = "www.domain")
5807-
* StringUtils.removeEndIgnoreCase("www.domain.COM", ".com") = "www.domain")
5806+
* StringUtils.removeEndIgnoreCase("www.domain.com", ".COM") = "www.domain"
5807+
* StringUtils.removeEndIgnoreCase("www.domain.COM", ".com") = "www.domain"
58085808
* </pre>
58095809
*
58105810
* @param str the source String to search, may be null.
@@ -5858,7 +5858,7 @@ public static String removeEndIgnoreCase(final String str, final String remove)
58585858
* @see java.util.regex.Pattern
58595859
* @see java.util.regex.Pattern#DOTALL
58605860
* @since 3.5
5861-
* @deprecated Moved to RegExUtils.
5861+
* @deprecated Use {@link RegExUtils#replaceFirst(String, String, String) RegExUtils.replaceFirst(String, String, EMPTY)}
58625862
*/
58635863
@Deprecated
58645864
public static String removeFirst(final String text, final String regex) {
@@ -5923,7 +5923,7 @@ public static String removeIgnoreCase(final String str, final String remove) {
59235923
* @see Pattern#DOTALL
59245924
* @since 3.2
59255925
* @since 3.5 Changed {@code null} reference passed to this method is a no-op.
5926-
* @deprecated Moved to RegExUtils.
5926+
* @deprecated Use {@link RegExUtils#removePattern(CharSequence, String)}
59275927
*/
59285928
@Deprecated
59295929
public static String removePattern(final String source, final String regex) {
@@ -6233,7 +6233,7 @@ public static String replace(final String text, final String searchString, final
62336233
* @see java.util.regex.Pattern
62346234
* @see java.util.regex.Pattern#DOTALL
62356235
* @since 3.5
6236-
* @deprecated Moved to RegExUtils.
6236+
* @deprecated Use {@link RegExUtils#replaceAll(String, String, String)}
62376237
*/
62386238
@Deprecated
62396239
public static String replaceAll(final String text, final String regex, final String replacement) {
@@ -6594,7 +6594,7 @@ public static String replaceEachRepeatedly(final String text, final String[] sea
65946594
* @see java.util.regex.Pattern
65956595
* @see java.util.regex.Pattern#DOTALL
65966596
* @since 3.5
6597-
* @deprecated Moved to RegExUtils.
6597+
* @deprecated Use {@link RegExUtils#replaceFirst(String, String, String)}
65986598
*/
65996599
@Deprecated
66006600
public static String replaceFirst(final String text, final String regex, final String replacement) {
@@ -6766,7 +6766,7 @@ public static String replaceOnceIgnoreCase(final String text, final String searc
67666766
* @see Pattern#DOTALL
67676767
* @since 3.2
67686768
* @since 3.5 Changed {@code null} reference passed to this method is a no-op.
6769-
* @deprecated Moved to RegExUtils.
6769+
* @deprecated Use {@link RegExUtils#replacePattern(CharSequence, String, String)}
67706770
*/
67716771
@Deprecated
67726772
public static String replacePattern(final String source, final String regex, final String replacement) {
@@ -6825,7 +6825,7 @@ public static String reverseDelimited(final String str, final char separatorChar
68256825
* Gets the rightmost {@code len} characters of a String.
68266826
*
68276827
* <p>
6828-
* If {@code len} characters are not available, or the String is {@code null}, the String will be returned without an an exception. An empty String is
6828+
* If {@code len} characters are not available, or the String is {@code null}, the String will be returned without an exception. An empty String is
68296829
* returned if len is negative.
68306830
* </p>
68316831
*

0 commit comments

Comments
 (0)