Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 39E8A1836D for ; Mon, 4 Jan 2016 09:22:40 +0000 (UTC) Received: (qmail 18346 invoked by uid 500); 4 Jan 2016 09:22:40 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 18297 invoked by uid 500); 4 Jan 2016 09:22:40 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 18230 invoked by uid 99); 4 Jan 2016 09:22:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2016 09:22:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D40122C1F5C for ; Mon, 4 Jan 2016 09:22:39 +0000 (UTC) Date: Mon, 4 Jan 2016 09:22:39 +0000 (UTC) From: "Naganarasimha G R (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-4535) Fix checkstyle error in CapacityScheduler.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)