Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3791

Use generics in ReflectionUtils

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.19.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The attached patch makes ReflectionUtils.newInstance use generics appropriately. I've also gone through and updated everywhere that calls ReflectionUtils.newInstance to remove now-redundant casts, or to add further generics where appropriate. The overall result is about 17 fewer @SupressWarnings("unchecked") needed in the source tree.

        Attachments

        1. hadoop-generics.patch
          63 kB
          Chris Smith
        2. hadoop-generics.patch
          69 kB
          Chris Smith

          Activity

            People

            • Assignee:
              md87 Chris Smith
              Reporter:
              md87 Chris Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: