cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1137772 - /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/db/commitlog/ReplayPosition.java
Date Mon, 20 Jun 2011 20:50:08 GMT
Author: jbellis
Date: Mon Jun 20 20:50:08 2011
New Revision: 1137772

URL: http://svn.apache.org/viewvc?rev=1137772&view=rev
Log:
use valueOf instead of new

Modified:
    cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/db/commitlog/ReplayPosition.java

Modified: cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/db/commitlog/ReplayPosition.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/db/commitlog/ReplayPosition.java?rev=1137772&r1=1137771&r2=1137772&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/db/commitlog/ReplayPosition.java
(original)
+++ cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/db/commitlog/ReplayPosition.java
Mon Jun 20 20:50:08 2011
@@ -73,9 +73,9 @@ public class ReplayPosition implements C
         public int compare(ReplayPosition o1, ReplayPosition o2)
         {
             if (o1.segment != o2.segment)
-                return new Long(o1.segment).compareTo(o2.segment);
+                return Long.valueOf(o1.segment).compareTo(o2.segment);
 
-            return new Integer(o1.position).compareTo(o2.position);
+            return Integer.valueOf(o1.position).compareTo(o2.position);
         }
     };
 



Mime
View raw message