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


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e8c5be63
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e8c5be63
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e8c5be63

Branch: refs/heads/HDFS-7240
Commit: e8c5be63f0110b3c761575207dc3234c25b76078
Parents: 21176a8
Author: Weiwei Yang <w...@apache.org>
Authored: Mon Mar 5 11:49:43 2018 +0800
Committer: Weiwei Yang <w...@apache.org>
Committed: Mon Mar 5 11:49:43 2018 +0800

----------------------------------------------------------------------
 .../hadoop/yarn/util/constraint/PlacementConstraintParser.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/e8c5be63/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/util/constraint/PlacementConstraintParser.java
----------------------------------------------------------------------
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/util/constraint/PlacementConstraintParser.java
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/util/constraint/PlacementConstraintParser.java
index 603e692..2926c9d 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/util/constraint/PlacementConstraintParser.java
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/util/constraint/PlacementConstraintParser.java
@@ -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()) {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to