hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhankun Tang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-8918) [Submarine] Remove redundant method of str.subString(0, str.length())
Date Fri, 19 Oct 2018 14:23:00 GMT
Zhankun Tang created YARN-8918:
----------------------------------

             Summary: [Submarine] Remove redundant method of str.subString(0, str.length())
                 Key: YARN-8918
                 URL: https://issues.apache.org/jira/browse/YARN-8918
             Project: Hadoop YARN
          Issue Type: Sub-task
            Reporter: Zhankun Tang


In CliUtils.java (line 74), there's redundant code block that can be removed:
{code:java}
if (resourcesStr.endsWith("]")) {
 resourcesStr = resourcesStr.substring(0, resourcesStr.length());
}{code}
Above if block will execute "resourceStr = resourceStr".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org


Mime
View raw message