You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2009/06/23 14:36:08 UTC
[jira] Commented: (CASSANDRA-246) Efficient way of creating wrapper
classes
[ https://issues.apache.org/jira/browse/CASSANDRA-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723057#action_12723057 ]
Hudson commented on CASSANDRA-246:
----------------------------------
Integrated in Cassandra #117 (See [http://hudson.zones.apache.org/hudson/job/Cassandra/117/])
replace new Foo(...) with Foo.valueOf. patch by Edward Ribeiro; reviewed by jbellis for
> Efficient way of creating wrapper classes
> -----------------------------------------
>
> Key: CASSANDRA-246
> URL: https://issues.apache.org/jira/browse/CASSANDRA-246
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Edward Ribeiro
> Assignee: Edward Ribeiro
> Attachments: CASSANDRA-246.patch
>
>
> Instead of using new Integer(19), the best way of creating a wrapper class is Integer.valueOf(19) because it gives the JVM the chance to cache low range values, etc.
> The change affects two classes: AnalyticsContext and MetricRecord. The patch is attached to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.