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

Chris Nauroth updated YARN-161:
-------------------------------

    Attachment: YARN-161.patch

This patch corrects the compiler warnings/errors by specifying type parameters 
explicitly, so that the types are not raw.  The last line of the diff actually 
relaxes a type from Iterator<STATE> to raw Iterator.  This was the cleaner fix, 
because the logic afterwards doesn't need more specific type information.  It 
just needs to call toString on the elements, and all types have toString.

This patch will get a -1 from Jenkins for lack of new tests.  There are no 
logic changes here, and all existing tests pass.
                
> Yarn Common has multiple compiler warnings for unchecked operations
> -------------------------------------------------------------------
>
>                 Key: YARN-161
>                 URL: https://issues.apache.org/jira/browse/YARN-161
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: api
>    Affects Versions: 3.0.0
>            Reporter: Chris Nauroth
>         Attachments: YARN-161.patch
>
>
> The warnings are in classes StateMachineFactory, RecordFactoryProvider, 
> RpcFactoryProvider, and YarnRemoteExceptionFactoryProvider.  OpenJDK 1.6.0_24 
> actually treats these as compilation errors, causing the build to fail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to