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 StringBuilder correctly
Date Mon, 01 Aug 2016 23:36:07 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk eaf4b91ae -> f59a78b76


use StringBuilder correctly


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

Branch: refs/heads/trunk
Commit: f59a78b7625f7679794c3db1a185344af1353ebd
Parents: eaf4b91
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Mon Aug 1 19:35:51 2016 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Mon Aug 1 19:35:51 2016 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/ColumnFamilyStoreCQLHelper.java | 2 +-
 src/java/org/apache/cassandra/gms/FailureDetector.java           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f59a78b7/src/java/org/apache/cassandra/db/ColumnFamilyStoreCQLHelper.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/ColumnFamilyStoreCQLHelper.java b/src/java/org/apache/cassandra/db/ColumnFamilyStoreCQLHelper.java
index f040575..91c04a8 100644
--- a/src/java/org/apache/cassandra/db/ColumnFamilyStoreCQLHelper.java
+++ b/src/java/org/apache/cassandra/db/ColumnFamilyStoreCQLHelper.java
@@ -330,7 +330,7 @@ public class ColumnFamilyStoreCQLHelper
         {
             builder.append(singleQuote(entry.getKey()));
             builder.append(": ");
-            builder.append("0x" + ByteBufferUtil.bytesToHex(entry.getValue()));
+            builder.append("0x").append(ByteBufferUtil.bytesToHex(entry.getValue()));
         }
         builder.append(" }");
         return builder.toString();

http://git-wip-us.apache.org/repos/asf/cassandra/blob/f59a78b7/src/java/org/apache/cassandra/gms/FailureDetector.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/gms/FailureDetector.java b/src/java/org/apache/cassandra/gms/FailureDetector.java
index 7d8b88b..c73cc07 100644
--- a/src/java/org/apache/cassandra/gms/FailureDetector.java
+++ b/src/java/org/apache/cassandra/gms/FailureDetector.java
@@ -351,7 +351,7 @@ public class FailureDetector implements IFailureDetector, FailureDetectorMBean
         for (InetAddress ep : eps)
         {
             ArrivalWindow hWnd = arrivalSamples.get(ep);
-            sb.append(ep + " : ");
+            sb.append(ep).append(" : ");
             sb.append(hWnd);
             sb.append(System.getProperty("line.separator"));
         }


Mime
View raw message