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

Cleanup switch statement in ApplicationMasterLauncher#handle()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The last case in the switch statement relies on the break coming from the default case instead of having it's own break. It's a bit dangerous for any future code modifications in this section.

        Attachments

        1. YARN-3182.001.patch
          1 kB
          Ray Chiang

          Activity

            People

            • Assignee:
              rchiang Ray Chiang
              Reporter:
              rchiang Ray Chiang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: