cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject cassandra git commit: use short circuiting ops
Date Wed, 08 Apr 2015 04:53:37 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 866afef29 -> 2f1be5d5b


use short circuiting ops


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

Branch: refs/heads/trunk
Commit: 2f1be5d5b36fd5a5702e5b2cfcbd8259c4a17733
Parents: 866afef
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Wed Apr 8 00:53:12 2015 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Wed Apr 8 00:53:12 2015 -0400

----------------------------------------------------------------------
 .../apache/cassandra/io/util/UnbufferedDataOutputStreamPlus.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/2f1be5d5/src/java/org/apache/cassandra/io/util/UnbufferedDataOutputStreamPlus.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/util/UnbufferedDataOutputStreamPlus.java b/src/java/org/apache/cassandra/io/util/UnbufferedDataOutputStreamPlus.java
index c05b5b2..6e33e60 100644
--- a/src/java/org/apache/cassandra/io/util/UnbufferedDataOutputStreamPlus.java
+++ b/src/java/org/apache/cassandra/io/util/UnbufferedDataOutputStreamPlus.java
@@ -300,7 +300,7 @@ public abstract class UnbufferedDataOutputStreamPlus extends DataOutputStreamPlu
                 }
 
                 char ch = str.charAt(charIndex);
-                if ((ch > 0) & (ch <= 127))
+                if ((ch > 0) && (ch <= 127))
                 {
                     utfBytes[utfIndex++] = (byte) ch;
                 }


Mime
View raw message