hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chia7...@apache.org
Subject hbase git commit: HBASE-19464 Replace StringBuffer with StringBuilder for hbase-common
Date Sun, 10 Dec 2017 14:52:26 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 3eb87802c -> a0b0bcede


HBASE-19464 Replace StringBuffer with StringBuilder for hbase-common

Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>


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

Branch: refs/heads/master
Commit: a0b0bcede0f4daf73b8a0795f0e88bceac368d8b
Parents: 3eb8780
Author: BELUGA BEHR <dam6923@gmail.com>
Authored: Sun Dec 10 22:39:49 2017 +0800
Committer: Chia-Ping Tsai <chia7712@gmail.com>
Committed: Sun Dec 10 22:40:46 2017 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/CompoundConfiguration.java   | 2 +-
 .../src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfo.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a0b0bced/hbase-common/src/main/java/org/apache/hadoop/hbase/CompoundConfiguration.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/CompoundConfiguration.java
b/hbase-common/src/main/java/org/apache/hadoop/hbase/CompoundConfiguration.java
index 53ba89e..b597fe6 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/CompoundConfiguration.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/CompoundConfiguration.java
@@ -261,7 +261,7 @@ public class CompoundConfiguration extends Configuration {
 
   @Override
   public String toString() {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     sb.append("CompoundConfiguration: " + this.configs.size() + " configs");
     for (ImmutableConfigMap m : this.configs) {
       sb.append(m);

http://git-wip-us.apache.org/repos/asf/hbase/blob/a0b0bced/hbase-common/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfo.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfo.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfo.java
index d3ccd3f..5408083 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfo.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfo.java
@@ -124,7 +124,7 @@ public class RSGroupInfo {
 
   @Override
   public String toString() {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     sb.append("Name:");
     sb.append(this.name);
     sb.append(", ");


Mime
View raw message