YARN-4535. Fix checkstyle error in CapacityScheduler.java (Naganarasimha G R via rohithsharmaks)

(cherry picked from commit 6da6d87872)
This commit is contained in:
rohithsharmaks 2016-01-05 12:09:57 +05:30
parent cdd796d199
commit 0492552f30
2 changed files with 6 additions and 3 deletions

View File

@ -44,6 +44,9 @@ Release 2.9.0 - UNRELEASED
YARN-4530. LocalizedResource trigger a NPE Cause the NodeManager exit
(tangshangwen via rohithsharmaks)
YARN-4535. Fix checkstyle error in CapacityScheduler.java
(Naganarasimha G R via rohithsharmaks)
Release 2.8.0 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -647,8 +647,8 @@ public class CapacityScheduler extends
parentQueue.setChildQueues(childQueues);
}
if(queue instanceof LeafQueue == true && queues.containsKey(queueName)
&& queues.get(queueName) instanceof LeafQueue == true) {
if (queue instanceof LeafQueue && queues.containsKey(queueName)
&& queues.get(queueName) instanceof LeafQueue) {
throw new IOException("Two leaf queues were named " + queueName
+ ". Leaf queue names must be distinct");
}