commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: svn commit: r919859 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Sat, 06 Mar 2010 22:28:04 GMT
On 06/03/2010, ggregory@apache.org <ggregory@apache.org> wrote:
> 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>.

s/String/CharSequence/g ?

>       * @since 2.4
>       */
>  -    public static int length(String str) {
>  +    public static int length(CharSequence str) {
>          return str == null ? 0 : str.length();
>      }

Perhaps the Javadoc needs changing too?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message