[ 
https://issues.apache.org/jira/browse/MAPREDUCE-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734415#action_12734415
 ] 

Tsz Wo (Nicholas), SZE commented on MAPREDUCE-792:
--------------------------------------------------

It is better to have the @SuppressWarnings right above the required code.  i.e.
{code}
-    Class inputClass = dbConf.getInputClass();
+    @SuppressWarnings("unchecked")
+    Class<T> inputClass = (Class<T>)dbConf.getInputClass();
{code}

> javac warnings in DBInputFormat
> -------------------------------
>
>                 Key: MAPREDUCE-792
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-792
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Aaron Kimball
>            Assignee: Aaron Kimball
>            Priority: Minor
>         Attachments: MAPREDUCE-792.patch
>
>
> MAPREDUCE-716 introduces javac warnings

-- 
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