cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-246) Efficient way of creating wrapper classes
Date Tue, 23 Jun 2009 12:36:08 GMT

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


Mime
View raw message