YARN-7995. Remove unnecessary boxings and unboxings from PlacementConstraintParser.java. Contributed by Sen Zhao.

This commit is contained in:
Weiwei Yang 2018-03-05 11:49:43 +08:00
parent 21176a8ba7
commit e8c5be63f0

View File

@ -431,10 +431,10 @@ public AbstractConstraint parse()
} }
String maxCardinalityStr = resetElements.pop(); String maxCardinalityStr = resetElements.pop();
Integer max = toInt(maxCardinalityStr); int max = toInt(maxCardinalityStr);
String minCardinalityStr = resetElements.pop(); String minCardinalityStr = resetElements.pop();
Integer min = toInt(minCardinalityStr); int min = toInt(minCardinalityStr);
ArrayList<String> targetTags = new ArrayList<>(); ArrayList<String> targetTags = new ArrayList<>();
while (!resetElements.empty()) { while (!resetElements.empty()) {