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

Use generics in ReflectionUtils

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.19.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: