commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxx (JIRA)" <j...@apache.org>
Subject [jira] Created: (LANG-633) Use same optimization in toBooleanObject(String) as in toBoolean(String str)
Date Thu, 08 Jul 2010 09:09:50 GMT
Use same optimization in toBooleanObject(String) as in toBoolean(String str)
----------------------------------------------------------------------------

                 Key: LANG-633
                 URL: https://issues.apache.org/jira/browse/LANG-633
             Project: Commons Lang
          Issue Type: Improvement
          Components: lang.*
    Affects Versions: 2.5, 3.0, 3.1
            Reporter: Maxx
            Priority: Minor


Regarding optimization made in this method:

public static boolean toBoolean(String str)

in order to speed up the execution, why not use the same optimization in this method:

public static Boolean toBooleanObject(String str)

Note: the parameter is the same, only the output changes (from true/false to Boolean.TRUE/Boolean.FALSE/null)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message