You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rob Tompkins (JIRA)" <ji...@apache.org> on 2019/04/11 14:28:00 UTC
[jira] [Updated] (LANG-1448) Commons-Lang3; StringUtils JavaDoc
page wrong for containsOnly and containsNone
[ https://issues.apache.org/jira/browse/LANG-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Tompkins updated LANG-1448:
-------------------------------
Assignee: Rob Tompkins
> Commons-Lang3; StringUtils JavaDoc page 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
>
> 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
(v7.6.3#76005)