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.