You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Akira Ajisaka (JIRA)" <ji...@apache.org> on 2018/03/03 16:10:00 UTC

[jira] [Created] (YARN-7995) Remove unnecessary boxings and unboxings from PlacementConstraintParser.java

Akira Ajisaka created YARN-7995:
-----------------------------------

             Summary: Remove unnecessary boxings and unboxings from PlacementConstraintParser.java
                 Key: YARN-7995
                 URL: https://issues.apache.org/jira/browse/YARN-7995
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Akira Ajisaka


{code}
      String maxCardinalityStr = resetElements.pop();
      Integer max = toInt(maxCardinalityStr);

      String minCardinalityStr = resetElements.pop();
      Integer min = toInt(minCardinalityStr);
{code}
{{toInt(String)}} does not return null, so {{Integer}} should be replaced with {{int}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org