Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10380 Cleanup javac warnings
  3. HADOOP-10426

CreateOpts.getOpt(..) should declare with generic type argument

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.5.0
    • fs
    • None
    • Reviewed

    Description

      Similar to CreateOpts.setOpt(..), the CreateOpts.getOpt(..) should also declare with a generic type parameter <T extends CreateOpts>. Then, all the casting from CreateOpts to its subclasses can be avoided.

      Attachments

        1. c10426_20140324.patch
          28 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: