cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tylerho...@apache.org
Subject git commit: Ninja: use equals() for Boolean comparison
Date Wed, 28 May 2014 22:38:47 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.0 d92a79f5b -> d31c29c5a


Ninja: use equals() for Boolean comparison


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

Branch: refs/heads/cassandra-2.0
Commit: d31c29c5a9eccdc33508e38d10ffd73d891e9a54
Parents: d92a79f
Author: Tyler Hobbs <tyler@datastax.com>
Authored: Wed May 28 17:38:22 2014 -0500
Committer: Tyler Hobbs <tyler@datastax.com>
Committed: Wed May 28 17:38:22 2014 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cql3/statements/SelectStatement.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d31c29c5/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java b/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
index e339ccb..a14782f 100644
--- a/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
+++ b/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
@@ -1940,7 +1940,7 @@ public class SelectStatement implements CQLStatement, MeasurableForPreparedCache
                     isReversed = b;
                     continue;
                 }
-                if (isReversed != b)
+                if (!isReversed.equals(b))
                     throw new InvalidRequestException(String.format("Unsupported order by
relation"));
             }
             assert isReversed != null;


Mime
View raw message