Merge pull request #1791 from sunchaser-lilu/f-1789

second commit #1789 update JobRegistryMonitorHelper.java, replace String with StringBuilder
pull/22/MERGE
许雪里 5 years ago committed by GitHub
commit 78d639bcaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -66,10 +66,11 @@ public class JobRegistryMonitorHelper {
String addressListStr = null;
if (registryList!=null && !registryList.isEmpty()) {
Collections.sort(registryList);
addressListStr = "";
StringBuilder sb = new StringBuilder();
for (String item:registryList) {
addressListStr += item + ",";
sb.append(item).append(",");
}
addressListStr = sb.toString();
addressListStr = addressListStr.substring(0, addressListStr.length()-1);
}
group.setAddressList(addressListStr);

Loading…
Cancel
Save