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();
Integer max = toInt(maxCardinalityStr);
int max = toInt(maxCardinalityStr);
String minCardinalityStr = resetElements.pop();
Integer min = toInt(minCardinalityStr);
int min = toInt(minCardinalityStr);
ArrayList<String> targetTags = new ArrayList<>();
while (!resetElements.empty()) {