[ 
https://issues.apache.org/jira/browse/HADOOP-3791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Douglas updated HADOOP-3791:
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.19.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

I just committed this, with an update to o.a.h.mapreduce.JobContext:

{noformat}
-    return WritableComparator.get(getMapOutputKeyClass());
+    return WritableComparator.get(
+        (Class<? extends WritableComparable>)getMapOutputKeyClass());
{noformat}

Thanks, Chris

> Use generics in ReflectionUtils
> -------------------------------
>
>                 Key: HADOOP-3791
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3791
>             Project: Hadoop Core
>          Issue Type: Task
>            Reporter: Chris Smith
>            Assignee: Chris Smith
>            Priority: Trivial
>             Fix For: 0.19.0
>
>         Attachments: hadoop-generics.patch, hadoop-generics.patch
>
>
> 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. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to