[ 
https://issues.apache.org/jira/browse/LANG-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18047425#comment-18047425
 ] 

Gary D. Gregory commented on LANG-1448:
---------------------------------------

[~burhans] Please see git master or a 
[snapshot|https://repository.apache.org/content/repositories/snapshots/] build 
for updated Javadoc.


> StringUtils Javadoc wrong for containsOnly and containsNone
> -----------------------------------------------------------
>
>                 Key: LANG-1448
>                 URL: https://issues.apache.org/jira/browse/LANG-1448
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.8.1
>            Reporter: David W. Burhans
>            Assignee: Rob Tompkins
>            Priority: Minor
>             Fix For: 3.20.1
>
>
> TLDR: 'xxx' is not java and can never compile.
>  
> The descriptions of the 
> containsOnly([CharSequence|https://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true]
>  cs, char... valid) and 
> containsNone([CharSequence|https://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true]
>  cs, char... valid) methods contain incorrect examples.
>  
> One such bad example: 
> StringUtils.containsOnly("abab", 'abc') = true
>  
> This is not Java code and can never compile.
>  
> The description of the 
> containsAny([CharSequence|https://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true]
>  cs, char... valid) method does contain correct examples.
>  
> One such correct example: 
> StringUtils.containsAny("zzabyycdxx",['z','a']) = true
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to