From 3c84272b53c76399d4f6c0360a4aae2bbe0de6f2 Mon Sep 17 00:00:00 2001 From: BELUGA BEHR Date: Sun, 10 Dec 2017 22:39:49 +0800 Subject: [PATCH] HBASE-19464 Replace StringBuffer with StringBuilder for hbase-common Signed-off-by: Chia-Ping Tsai --- .../java/org/apache/hadoop/hbase/CompoundConfiguration.java | 2 +- .../main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 53ba89ece06..b597fe6ca12 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); 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 d3ccd3fff75..5408083e42f 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(", ");