You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2015/05/22 22:11:17 UTC
[jira] [Closed] (SLING-4553) Avoid unneeded unboxing in
PropertiesUtil
[ https://issues.apache.org/jira/browse/SLING-4553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seifert closed SLING-4553.
---------------------------------
> Avoid unneeded unboxing in PropertiesUtil
> -----------------------------------------
>
> Key: SLING-4553
> URL: https://issues.apache.org/jira/browse/SLING-4553
> Project: Sling
> Issue Type: Bug
> Components: Commons
> Affects Versions: Commons OSGi 2.2.2
> Reporter: Robert Munteanu
> Assignee: Robert Munteanu
> Priority: Minor
> Fix For: Commons OSGi 2.3.0
>
>
> 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 )
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)