You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Naganarasimha G R (JIRA)" <ji...@apache.org> on 2016/01/04 07:50:39 UTC

[jira] [Assigned] (YARN-4535) Fix checkstyle error in CapacityScheduler.java

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

Naganarasimha G R reassigned YARN-4535:
---------------------------------------

    Assignee: Naganarasimha G R

> Fix checkstyle error in CapacityScheduler.java
> ----------------------------------------------
>
>                 Key: YARN-4535
>                 URL: https://issues.apache.org/jira/browse/YARN-4535
>             Project: Hadoop YARN
>          Issue Type: Task
>            Reporter: Rohith Sharma K S
>            Assignee: Naganarasimha G R
>            Priority: Trivial
>
> In the below code *CS#parseQueue*, expression can be simplified instead of {{queue instanceof LeafQueue == true}} & {{queues.get(queueName) instanceof LeafQueue == true}}
> {code}
>  if(queue instanceof LeafQueue == true && queues.containsKey(queueName)
>       && queues.get(queueName) instanceof LeafQueue == true) {
>       throw new IOException("Two leaf queues were named " + queueName
>         + ". Leaf queue names must be distinct");
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)