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

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      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 Nicholas Sze

          Issue Links

            Activity

              People

              • Assignee:
                szetszwo Tsz Wo Nicholas Sze
                Reporter:
                szetszwo Tsz Wo Nicholas Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: