cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r774166 - in /incubator/cassandra/trunk/src/java/org/apache/cassandra/db: ColumnFamilyStore.java FileNameComparator.java
Date Wed, 13 May 2009 02:19:34 GMT
Author: jbellis
Date: Wed May 13 02:19:34 2009
New Revision: 774166

URL: http://svn.apache.org/viewvc?rev=774166&view=rev
Log:
misc cleanup.  patch by jbellis

Modified:
    incubator/cassandra/trunk/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
    incubator/cassandra/trunk/src/java/org/apache/cassandra/db/FileNameComparator.java

Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/db/ColumnFamilyStore.java?rev=774166&r1=774165&r2=774166&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/java/org/apache/cassandra/db/ColumnFamilyStore.java (original)
+++ incubator/cassandra/trunk/src/java/org/apache/cassandra/db/ColumnFamilyStore.java Wed
May 13 02:19:34 2009
@@ -58,7 +58,7 @@
  * Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com
)
  */
 
-public class ColumnFamilyStore implements ColumnFamilyStoreMBean
+public final class ColumnFamilyStore implements ColumnFamilyStoreMBean
 {
     private static Logger logger_ = Logger.getLogger(ColumnFamilyStore.class);
 

Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/db/FileNameComparator.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/db/FileNameComparator.java?rev=774166&r1=774165&r2=774166&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/java/org/apache/cassandra/db/FileNameComparator.java (original)
+++ incubator/cassandra/trunk/src/java/org/apache/cassandra/db/FileNameComparator.java Wed
May 13 02:19:34 2009
@@ -4,11 +4,10 @@
 
 class FileNameComparator implements Comparator<String>
 {
-	// 0 - ascending , 1- descending
 	private int order_ = 1 ;
 	
-	public static final int  Ascending = 0 ;
-	public static final int  Descending = 1 ;
+	public static final int Ascending = 0 ;
+	public static final int Descending = 1 ;
 	
 	FileNameComparator( int order )
 	{
@@ -22,11 +21,4 @@
     	else
     		return ColumnFamilyStore.getIndexFromFileName(f) - ColumnFamilyStore.getIndexFromFileName(f2);
     }
-
-    public boolean equals(Object o)
-    {
-        if (!(o instanceof FileNameComparator))
-            return false;
-        return true;
-    }
 }
\ No newline at end of file



Mime
View raw message