HBASE-20737 (addendum) put collection into ArrayList instead of addAll function -- RetriesExhaustedWithDetailsException.java

Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
taiynlee 2018-06-19 08:42:47 +00:00 committed by Chia-Ping Tsai
parent c08eff67af
commit d23a517b61
1 changed files with 1 additions and 2 deletions

View File

@ -117,8 +117,7 @@ extends RetriesExhaustedException {
String s = getDesc(classifyExs(exceptions));
StringBuilder addrs = new StringBuilder(s);
addrs.append("servers with issues: ");
Set<String> uniqAddr = new HashSet<>();
uniqAddr.addAll(hostnamePort);
Set<String> uniqAddr = new HashSet<>(hostnamePort);
for (String addr : uniqAddr) {
addrs.append(addr).append(", ");