cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r765020 - /incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnComparatorFactoryTest.java
Date Wed, 15 Apr 2009 00:22:13 GMT
Author: jbellis
Date: Wed Apr 15 00:22:13 2009
New Revision: 765020

URL: http://svn.apache.org/viewvc?rev=765020&view=rev
Log:
fix ColumnComparatorFactoryTest.  patch by Jun Rao; reviewed by jbellis for #82

Modified:
    incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnComparatorFactoryTest.java

Modified: incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnComparatorFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnComparatorFactoryTest.java?rev=765020&r1=765019&r2=765020&view=diff
==============================================================================
--- incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnComparatorFactoryTest.java
(original)
+++ incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnComparatorFactoryTest.java
Wed Apr 15 00:22:13 2009
@@ -5,13 +5,12 @@
 import java.util.Comparator;
 
 public class ColumnComparatorFactoryTest {
-    public Comparator<IColumn> nameComparator;
+    public Comparator<IColumn> nameComparator  = ColumnComparatorFactory.getComparator(ColumnComparatorFactory.ComparatorType.NAME);
 
     @Test
     public void testLT() {
         IColumn col1 = new Column("Column-8");
         IColumn col2 = new Column("Column-9");
-        nameComparator = ColumnComparatorFactory.getComparator(ColumnComparatorFactory.ComparatorType.NAME);
         assert nameComparator.compare(col1, col2) < 0;
     }
 



Mime
View raw message