YARN-6780. ResourceWeights.toString() cleanup (Contributed by weiyuan via Daniel Templeton)

(cherry picked from commit d4417dae4f)
This commit is contained in:
Daniel Templeton 2017-08-31 09:35:01 -07:00
parent 59f1ca7258
commit 004231dc08
1 changed files with 2 additions and 1 deletions

View File

@ -54,8 +54,9 @@ public class ResourceWeights {
return weights[resourceType.ordinal()];
}
@Override
public String toString() {
StringBuffer sb = new StringBuffer();
StringBuilder sb = new StringBuilder();
sb.append("<");
for (int i = 0; i < ResourceType.values().length; i++) {
if (i != 0) {