mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-07 18:48:39 +00:00
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 static String leftPad(String str, int size, String padStr) {
|
||||
* @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…
x
Reference in New Issue
Block a user