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:
Gary D. Gregory 2010-03-06 22:09:37 +00:00
parent f91a7c97d3
commit 543f2d36e4
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}