hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-2042) String shouldn't be compared using == in QueuePlacementRule#NestedUserQueue#getQueueForApp()
Date Sat, 10 May 2014 22:03:45 GMT
Ted Yu created YARN-2042:
----------------------------

             Summary: String shouldn't be compared using == in QueuePlacementRule#NestedUserQueue#getQueueForApp()
                 Key: YARN-2042
                 URL: https://issues.apache.org/jira/browse/YARN-2042
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


{code}
      if (queueName != null && queueName != "") {
{code}
queueName.isEmpty() should be used instead of comparing against ""



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message