[
https://issues.apache.org/jira/browse/JCR-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jukka Zitting updated JCR-1424:
-------------------------------
Affects Version/s: (was: core 1.4.1)
Fix Version/s: (was: core 1.4.2)
1.5
Looks OK, though in practice I don't think this makes any difference. A decent
JVM will have no trouble optimizing the extra object away and even if it
doesn't the overhead is insignificant.
> [PATCH] simplify conversion of strings to primitives by using parseXXX, not
> valueOf(xxx).xxxValue()
> ---------------------------------------------------------------------------------------------------
>
> Key: JCR-1424
> URL: https://issues.apache.org/jira/browse/JCR-1424
> Project: Jackrabbit
> Issue Type: Improvement
> Components: jackrabbit-core
> Reporter: Dave Brosius
> Priority: Trivial
> Fix For: 1.5
>
> Attachments: simplify_string_to_primitive.patch,
> simplify_string_to_primitive.patch
>
>
> Code converts strings to primitives using a two step process, eg
> Boolean.valueOf(myString).booleanValue();
> can be simplified to
> Boolean.parseBoolean(myString);
> true of Float, Double, Int etc.
> In some cases, this avoids allocating temporary boxed objects
> patch fixes this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.