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

Cleanup switch statement in ApplicationMasterLauncher#handle()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: