YARN-7995. Remove unnecessary boxings and unboxings from PlacementConstraintParser.java. Contributed by Sen Zhao.
This commit is contained in:
parent
21176a8ba7
commit
e8c5be63f0
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user