hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naganarasimha G R (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-4535) Fix checkstyle error in CapacityScheduler.java
Date Mon, 04 Jan 2016 09:22:39 GMT

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

Naganarasimha G R updated YARN-4535:
------------------------------------
    Attachment: YARN-4535.v1.001.patch

attaching the patch and includes no test case as this is trivial patch

> 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
>         Attachments: YARN-4535.v1.001.patch
>
>
> 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)

Mime
View raw message