You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/03/30 12:33:53 UTC

[jira] [Resolved] (OAK-2694) Avoid unneeded unboxing in PropertiesUtil

     [ https://issues.apache.org/jira/browse/OAK-2694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chetan Mehrotra resolved OAK-2694.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.8
         Assignee: Chetan Mehrotra

Thanks Robert!. 

Applied the patch
* trunk - http://svn.apache.org/r1670042

> Avoid unneeded unboxing in PropertiesUtil
> -----------------------------------------
>
>                 Key: OAK-2694
>                 URL: https://issues.apache.org/jira/browse/OAK-2694
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: commons
>    Affects Versions: 1.1.7
>            Reporter: Robert Munteanu
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.1.8
>
>         Attachments: 0001-OAK-2694-Avoid-unneeded-unboxing-in-PropertiesUtil.patch, 0001-OAK-2694-Avoid-unneeded-unboxing-in-PropertiesUtil.patch
>
>
> 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)