cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1084948 - in /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht: BigIntegerToken.java BytesToken.java LocalToken.java StringToken.java
Date Thu, 24 Mar 2011 13:23:34 GMT
Author: jbellis
Date: Thu Mar 24 13:23:34 2011
New Revision: 1084948

URL: http://svn.apache.org/viewvc?rev=1084948&view=rev
Log:
add explicit serialVersionUID to Token subclasses
patch by slebresne; reviewed by jbellis for CASSANDRA-2361

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/BigIntegerToken.java
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/BytesToken.java
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/LocalToken.java
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/StringToken.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/BigIntegerToken.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/BigIntegerToken.java?rev=1084948&r1=1084947&r2=1084948&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/BigIntegerToken.java
(original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/BigIntegerToken.java
Thu Mar 24 13:23:34 2011
@@ -22,6 +22,8 @@ import java.math.BigInteger;
 
 public class BigIntegerToken extends Token<BigInteger>
 {
+    static final long serialVersionUID = -5833589141319293006L;
+
     public BigIntegerToken(BigInteger token)
     {
         super(token);

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/BytesToken.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/BytesToken.java?rev=1084948&r1=1084947&r2=1084948&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/BytesToken.java (original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/BytesToken.java Thu
Mar 24 13:23:34 2011
@@ -26,6 +26,8 @@ import org.apache.cassandra.utils.FBUtil
 
 public class BytesToken extends Token<byte[]>
 {
+    static final long serialVersionUID = -2630749093733680626L;
+
     public BytesToken(ByteBuffer token)
     {
         this(ByteBufferUtil.getArray(token));

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/LocalToken.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/LocalToken.java?rev=1084948&r1=1084947&r2=1084948&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/LocalToken.java (original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/LocalToken.java Thu
Mar 24 13:23:34 2011
@@ -24,6 +24,8 @@ import org.apache.cassandra.db.marshal.A
 
 public class LocalToken extends Token<ByteBuffer>
 {
+    static final long serialVersionUID = 8437543776403014875L;
+
     private final AbstractType comparator;
 
     public LocalToken(AbstractType comparator, ByteBuffer token)

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/StringToken.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/StringToken.java?rev=1084948&r1=1084947&r2=1084948&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/StringToken.java (original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/dht/StringToken.java Thu
Mar 24 13:23:34 2011
@@ -21,6 +21,8 @@ package org.apache.cassandra.dht;
 
 public class StringToken extends Token<String>
 {
+    static final long serialVersionUID = 5464084395277974963L;
+
     public StringToken(String token)
     {
         super(token);



Mime
View raw message