You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michael Greene (JIRA)" <ji...@apache.org> on 2009/08/12 03:12:15 UTC

[jira] Updated: (CASSANDRA-246) Efficient way of creating wrapper classes

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

Michael Greene updated CASSANDRA-246:
-------------------------------------

    Component/s: Core

> Efficient way of creating wrapper classes
> -----------------------------------------
>
>                 Key: CASSANDRA-246
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-246
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Edward Ribeiro
>            Assignee: Edward Ribeiro
>             Fix For: 0.4
>
>         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.