commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niall Pemberton <niall.pember...@gmail.com>
Subject Re: [lang]
Date Wed, 27 Oct 2010 22:13:18 GMT
On Wed, Oct 27, 2010 at 2:32 PM, Dirk Starke <Dirk.Starke@protagen.de> wrote:
> Hello,
>
> I just recognized the following example in class StringUtils:
>
> StringUtils.indexOfAnyBut("zzabyycdxx", '')  = 0
>
> I don't understand this example, because [] is used for an empty array
> in the documentation of this method. Could this be corrected or
> explained?

Looks like an error, should be:

StringUtils.indexOfAnyBut("zzabyycdxx", "")   = -1

http://commons.apache.org/lang/xref/org/apache/commons/lang3/StringUtils.html#1596

Please file a bug report:

http://commons.apache.org/lang/issue-tracking.html

Thanks

Niall

>
> Cheers,
>
> Dirk
>
>
>
>

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


Mime
View raw message