Change length(String) to length(CharSequence)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@919859 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f91a7c97d3
commit
543f2d36e4
|
@ -4614,7 +4614,7 @@ public class StringUtils {
|
|||
* @return String length or <code>0</code> if the String is <code>null</code>.
|
||||
* @since 2.4
|
||||
*/
|
||||
public static int length(String str) {
|
||||
public static int length(CharSequence str) {
|
||||
return str == null ? 0 : str.length();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue