cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: use StringBuilder vs. StringBuffer
Date Sat, 13 Jul 2013 00:12:28 GMT
Updated Branches:
  refs/heads/trunk c048f97cb -> 0a6e5fb44


use StringBuilder vs. StringBuffer


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

Branch: refs/heads/trunk
Commit: 0a6e5fb44e791dfa6989522e1b3f326424afcd51
Parents: c048f97
Author: Dave Brosius <dbrosius@apache.org>
Authored: Fri Jul 12 20:10:33 2013 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Fri Jul 12 20:10:33 2013 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/serializers/ListSerializer.java | 2 +-
 src/java/org/apache/cassandra/serializers/MapSerializer.java  | 2 +-
 src/java/org/apache/cassandra/serializers/SetSerializer.java  | 2 +-
 src/java/org/apache/cassandra/tools/NodeCmd.java              | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0a6e5fb4/src/java/org/apache/cassandra/serializers/ListSerializer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/serializers/ListSerializer.java b/src/java/org/apache/cassandra/serializers/ListSerializer.java
index 043f254..0272618 100644
--- a/src/java/org/apache/cassandra/serializers/ListSerializer.java
+++ b/src/java/org/apache/cassandra/serializers/ListSerializer.java
@@ -91,7 +91,7 @@ public class ListSerializer<T> extends CollectionSerializer<List<T>>
 
     public String toString(List<T> value)
     {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         boolean isFirst = true;
         for (T element : value)
         {

http://git-wip-us.apache.org/repos/asf/cassandra/blob/0a6e5fb4/src/java/org/apache/cassandra/serializers/MapSerializer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/serializers/MapSerializer.java b/src/java/org/apache/cassandra/serializers/MapSerializer.java
index 39b3cba..f04de6d 100644
--- a/src/java/org/apache/cassandra/serializers/MapSerializer.java
+++ b/src/java/org/apache/cassandra/serializers/MapSerializer.java
@@ -107,7 +107,7 @@ public class MapSerializer<K, V> extends CollectionSerializer<Map<K,
V>>
 
     public String toString(Map<K, V> value)
     {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         boolean isFirst = true;
         for (Map.Entry<K, V> element : value.entrySet())
         {

http://git-wip-us.apache.org/repos/asf/cassandra/blob/0a6e5fb4/src/java/org/apache/cassandra/serializers/SetSerializer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/serializers/SetSerializer.java b/src/java/org/apache/cassandra/serializers/SetSerializer.java
index 5595077..d424a11 100644
--- a/src/java/org/apache/cassandra/serializers/SetSerializer.java
+++ b/src/java/org/apache/cassandra/serializers/SetSerializer.java
@@ -91,7 +91,7 @@ public class SetSerializer<T> extends CollectionSerializer<Set<T>>
 
     public String toString(Set<T> value)
     {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         boolean isFirst = true;
         for (T element : value)
         {

http://git-wip-us.apache.org/repos/asf/cassandra/blob/0a6e5fb4/src/java/org/apache/cassandra/tools/NodeCmd.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/NodeCmd.java b/src/java/org/apache/cassandra/tools/NodeCmd.java
index 57c641a..c648bea 100644
--- a/src/java/org/apache/cassandra/tools/NodeCmd.java
+++ b/src/java/org/apache/cassandra/tools/NodeCmd.java
@@ -391,7 +391,7 @@ public class NodeCmd
         {
             if (format == null)
             {
-                StringBuffer buf = new StringBuffer();
+                StringBuilder buf = new StringBuilder();
                 String addressPlaceholder = String.format("%%-%ds  ", maxAddressLength);
                 buf.append("%s%s  ");                         // status
                 buf.append(addressPlaceholder);               // address


Mime
View raw message