cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject [1/2] git commit: Remove unused (and slightly broken) ColumnIdentifier.compareTo
Date Fri, 25 Apr 2014 10:28:13 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.0 86382f642 -> 082bfc9ee


Remove unused (and slightly broken) ColumnIdentifier.compareTo


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c0c2de53
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c0c2de53
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c0c2de53

Branch: refs/heads/cassandra-2.0
Commit: c0c2de53a075e00f3ee8b32db23a3cb3b289943a
Parents: 72203c5
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Fri Apr 25 12:23:55 2014 +0200
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Fri Apr 25 12:26:36 2014 +0200

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cql3/ColumnIdentifier.java | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/c0c2de53/src/java/org/apache/cassandra/cql3/ColumnIdentifier.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/ColumnIdentifier.java b/src/java/org/apache/cassandra/cql3/ColumnIdentifier.java
index 495915e..b4cb9e0 100644
--- a/src/java/org/apache/cassandra/cql3/ColumnIdentifier.java
+++ b/src/java/org/apache/cassandra/cql3/ColumnIdentifier.java
@@ -28,7 +28,7 @@ import org.apache.cassandra.cql3.statements.RawSelector;
 /**
  * Represents an identifer for a CQL column definition.
  */
-public class ColumnIdentifier implements RawSelector, Comparable<ColumnIdentifier>
+public class ColumnIdentifier implements RawSelector
 {
     public final ByteBuffer key;
     private final String text;
@@ -39,7 +39,7 @@ public class ColumnIdentifier implements RawSelector, Comparable<ColumnIdentifie
         this.key = ByteBufferUtil.bytes(this.text);
     }
 
-    public ColumnIdentifier(ByteBuffer key, AbstractType type)
+    public ColumnIdentifier(ByteBuffer key, AbstractType<?> type)
     {
         this.key = key;
         this.text = type.getString(key);
@@ -65,9 +65,4 @@ public class ColumnIdentifier implements RawSelector, Comparable<ColumnIdentifie
     {
         return text;
     }
-
-    public int compareTo(ColumnIdentifier other)
-    {
-        return key.compareTo(other.key);
-    }
 }


Mime
View raw message