Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7995

Remove unnecessary boxings and unboxings from PlacementConstraintParser.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.1.0
    • None
    • Reviewed

    Description

            String maxCardinalityStr = resetElements.pop();
            Integer max = toInt(maxCardinalityStr);
      
            String minCardinalityStr = resetElements.pop();
            Integer min = toInt(minCardinalityStr);
      

      toInt(String) does not return null, so Integer should be replaced with int.

      Attachments

        1. YARN-7995.001.patch
          1 kB
          Sen Zhao

        Issue Links

          Activity

            People

              Sen Zhao Sen Zhao
              aajisaka Akira Ajisaka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: