commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duncan Jones (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LANG-975) New BooleanUtils method toBoolean(String, String)
Date Tue, 14 Oct 2014 13:03:34 GMT

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

Duncan Jones closed LANG-975.
-----------------------------
       Resolution: Won't Fix
    Fix Version/s:     (was: Discussion)
                       (was: Review Patch)

The ML discussion can found here: http://markmail.org/message/3yvgfm2fuqkvwb7q. It doesn't
appear that this idea has much support. I'm going to close this issue as a "won't fix".

> New BooleanUtils method toBoolean(String, String)
> -------------------------------------------------
>
>                 Key: LANG-975
>                 URL: https://issues.apache.org/jira/browse/LANG-975
>             Project: Commons Lang
>          Issue Type: Wish
>          Components: lang.*
>    Affects Versions: 3.2.1
>            Reporter: Stephan Knitelius
>            Priority: Minor
>         Attachments: LANG-975.patch
>
>
> The BooleanUtils#toBoolean(String) works nicely for common boolean String notations.
> However there are many more boolean String notations such as 1/0, ja/nein etc... 
> I know this can be achieved via BooleanUtils#toBoolean(String,String,String), however
it would be nice to have another Method that only matches the true case, so that invalid cases
are automatically matched to false. 
> eg:
> BooleanUtils.toBoolean("1", "1")    = true
> BooleanUtils.toBoolean("foo", "1") = false



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message