Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4553

Avoid unneeded unboxing in PropertiesUtil

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Commons OSGi 2.2.2
    • Commons OSGi 2.3.0
    • Commons
    • None

    Description

      PropertiesUtil use the valueOf method to convert from String to int/long/boolean. Using the parseXXX variant means that no object creation + unboxing happens. ( Boolean is a special case, but that should be avoided anyway )

      Attachments

        Activity

          People

            rombert Robert Munteanu
            rombert Robert Munteanu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: