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
1 changed files with 2 additions and 2 deletions

View File

@ -431,10 +431,10 @@ public final class PlacementConstraintParser {
}
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()) {