Boolean should have a static factory valueOf(boolean)

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.3.0
    • Component/s: core-libs
    • beta
    • generic
    • generic
    • Verified

      The wrapper class java.lang.Boolean currently lacks a static factory that takes a boolean. As a consequence, people use the constructor, which needlessly creates a new object. Note that Boolean does have a static factory to go with its String constructor, so in addition to being inefficient, it's inconsistent that this method is missing.

            Assignee:
            Josh Bloch (Inactive)
            Reporter:
            Josh Bloch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: