YARN-6780. ResourceWeights.toString() cleanup (Contributed by weiyuan via Daniel Templeton)
This commit is contained in:
parent
f9e0cc8cdc
commit
d4417dae4f
|
@ -54,8 +54,9 @@ public class ResourceWeights {
|
||||||
return weights[resourceType.ordinal()];
|
return weights[resourceType.ordinal()];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("<");
|
sb.append("<");
|
||||||
for (int i = 0; i < ResourceType.values().length; i++) {
|
for (int i = 0; i < ResourceType.values().length; i++) {
|
||||||
if (i != 0) {
|
if (i != 0) {
|
||||||
|
|
Loading…
Reference in New Issue