[ https://issues.apache.org/jira/browse/YARN-8977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Weiwei Yang updated YARN-8977: ------------------------------ Fix Version/s: 3.0.2 > Remove unnecessary type casting when calling > AbstractYarnScheduler#getSchedulerNode > ----------------------------------------------------------------------------------- > > Key: YARN-8977 > URL: https://issues.apache.org/jira/browse/YARN-8977 > Project: Hadoop YARN > Issue Type: Improvement > Reporter: Wanqiang Ji > Assignee: Wanqiang Ji > Priority: Trivial > Fix For: 3.0.2, 3.1.2, 3.3.0, 3.2.1 > > Attachments: YARN-8977.001.patch, YARN-8977.002.patch > > > Due to the AbstractYarnScheduler#getSchedulerNode method return the generic > type, so I think don't need explicit type. > I found this issue in CapacityScheduler class. The warning message like: > {quote}Casting 'getSchedulerNode( nonKillableContainer.getAllocatedNode())' > to 'FiCaSchedulerNode' is redundant > {quote} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org