LANG-1026: Bring static method references in StringUtils to consistent style. Thanks to Alex Yursha
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1610149 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
967fdd064c
commit
b1caa21bf5
|
@ -22,6 +22,7 @@
|
|||
<body>
|
||||
|
||||
<release version="3.4" date="tba" description="tba">
|
||||
<action issue="LANG-1026" type="update" dev="britter" due-to="Alex Yursha">Bring static method references in StringUtils to consistent style</action>
|
||||
<action issue="LANG-1016" type="add" dev="britter" due-to="Juan Pablo Santos Rodríguez">NumberUtils#isParsable method(s)</action>
|
||||
<action issue="LANG-1017" type="update" dev="britter" due-to="Christoph Schneegans">Use non-ASCII digits in Javadoc examples for StringUtils.isNumeric</action>
|
||||
<action issue="LANG-1008" type="update" dev="britter" due-to="Thiago Andrade">Change min/max methods in NumberUtils/IEEE754rUtils from array input parameters to varargs</action>
|
||||
|
|
|
@ -235,7 +235,7 @@ public class StringUtils {
|
|||
* @since 3.0 Changed signature from isNotEmpty(String) to isNotEmpty(CharSequence)
|
||||
*/
|
||||
public static boolean isNotEmpty(final CharSequence cs) {
|
||||
return !StringUtils.isEmpty(cs);
|
||||
return !isEmpty(cs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -334,7 +334,7 @@ public class StringUtils {
|
|||
* @since 3.0 Changed signature from isNotBlank(String) to isNotBlank(CharSequence)
|
||||
*/
|
||||
public static boolean isNotBlank(final CharSequence cs) {
|
||||
return !StringUtils.isBlank(cs);
|
||||
return !isBlank(cs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -6243,7 +6243,7 @@ public class StringUtils {
|
|||
* @see StringUtils#defaultString(String, String)
|
||||
*/
|
||||
public static <T extends CharSequence> T defaultIfBlank(final T str, final T defaultStr) {
|
||||
return StringUtils.isBlank(str) ? defaultStr : str;
|
||||
return isBlank(str) ? defaultStr : str;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -6265,7 +6265,7 @@ public class StringUtils {
|
|||
* @see StringUtils#defaultString(String, String)
|
||||
*/
|
||||
public static <T extends CharSequence> T defaultIfEmpty(final T str, final T defaultStr) {
|
||||
return StringUtils.isEmpty(str) ? defaultStr : str;
|
||||
return isEmpty(str) ? defaultStr : str;
|
||||
}
|
||||
|
||||
// Reversing
|
||||
|
@ -7316,7 +7316,7 @@ public class StringUtils {
|
|||
return false;
|
||||
}
|
||||
for (final CharSequence searchString : searchStrings) {
|
||||
if (StringUtils.startsWith(string, searchString)) {
|
||||
if (startsWith(string, searchString)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -7473,7 +7473,7 @@ public class StringUtils {
|
|||
return false;
|
||||
}
|
||||
for (final CharSequence searchString : searchStrings) {
|
||||
if (StringUtils.endsWith(string, searchString)) {
|
||||
if (endsWith(string, searchString)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue