[ 
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.

Reply via email to