cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: use .equals on objects
Date Mon, 29 Jul 2013 01:13:13 GMT
Updated Branches:
  refs/heads/trunk 984fe8145 -> 6d6a5e330


use .equals on objects


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

Branch: refs/heads/trunk
Commit: 6d6a5e330bfdbda911f8ad0df393dedfbf648632
Parents: 984fe81
Author: Dave Brosius <dbrosius@apache.org>
Authored: Sun Jul 28 21:12:24 2013 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Sun Jul 28 21:12:24 2013 -0400

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/6d6a5e33/test/unit/org/apache/cassandra/utils/MerkleTreeTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/utils/MerkleTreeTest.java b/test/unit/org/apache/cassandra/utils/MerkleTreeTest.java
index 68a2d76..70fe3a0 100644
--- a/test/unit/org/apache/cassandra/utils/MerkleTreeTest.java
+++ b/test/unit/org/apache/cassandra/utils/MerkleTreeTest.java
@@ -458,7 +458,7 @@ public class MerkleTreeTest
         {
             Integer depth = depthiter.next();
             byte[] hash = val;
-            while (dstack.peek() == depth)
+            while (depth.equals(dstack.peek()))
             {
                 // consume the stack
                 hash = Hashable.binaryHash(hstack.pop(), hash);


Mime
View raw message