Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-633

Use same optimization in toBooleanObject(String) as in toBoolean(String str)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5, 3.0
    • 3.0
    • lang.*
    • None

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              maxxyme maxxyme
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: