commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r919859 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Sat, 06 Mar 2010 22:09:38 GMT
Author: ggregory
Date: Sat Mar  6 22:09:37 2010
New Revision: 919859

URL: http://svn.apache.org/viewvc?rev=919859&view=rev
Log:
Change length(String) to length(CharSequence) 

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=919859&r1=919858&r2=919859&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Sat
Mar  6 22:09:37 2010
@@ -4614,7 +4614,7 @@
      * @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();
     }
     



Mime
View raw message