cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: don't rely on the Integer cache for equality
Date Wed, 19 Mar 2014 00:58:09 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk aabc43973 -> 283175ee6


don't rely on the Integer cache for equality


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

Branch: refs/heads/trunk
Commit: 283175ee6032a652080f3767fa1fcac0ca74af0e
Parents: aabc439
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Tue Mar 18 20:54:29 2014 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Tue Mar 18 20:54:29 2014 -0400

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/utils/BTreeTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/283175ee/test/unit/org/apache/cassandra/utils/BTreeTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/utils/BTreeTest.java b/test/unit/org/apache/cassandra/utils/BTreeTest.java
index b4a960b..9ccb75f 100644
--- a/test/unit/org/apache/cassandra/utils/BTreeTest.java
+++ b/test/unit/org/apache/cassandra/utils/BTreeTest.java
@@ -23,6 +23,7 @@ import java.util.List;
 import java.util.Random;
 import java.util.concurrent.ThreadLocalRandom;
 
+import static org.junit.Assert.assertEquals;
 import org.junit.Test;
 
 import org.apache.cassandra.utils.btree.BTree;
@@ -119,7 +120,7 @@ public class BTreeTest
         assert vs.size() == count;
         int i = 0;
         for (Integer j : vs)
-            assert j == ints[i++];
+            assertEquals(j, ints[i++]);
     }
 
 }


Mime
View raw message