commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-952) Inconsistent handling of empty string
Date Sat, 22 Feb 2014 11:26:19 GMT

     [ https://issues.apache.org/jira/browse/LANG-952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benedikt Ritter updated LANG-952:
---------------------------------

    Fix Version/s:     (was: 3.3)
                   3.x

> Inconsistent handling of empty string
> -------------------------------------
>
>                 Key: LANG-952
>                 URL: https://issues.apache.org/jira/browse/LANG-952
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.2.1
>            Reporter: Benedikt Ritter
>            Assignee: Benedikt Ritter
>             Fix For: 3.x
>
>
> As discussed on the ML (http://markmail.org/message/sfpmt4mv54om4cyf) and in LANG-823
some methods handle the empty string inconsistently. For example:
> {code:java}
> StringUtils.containsNone("", *) = StringUtils.containsOnly("", *) = true
> {code}
> In this example it makes no sense, that the empty string at the same time contains no
character and contains any character. There is no reason to treat the empty string specially.
It should be handled like an arbitrary string. It needs to be checked if there are more examples
for inconsistent empty string handling.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message