You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Zhankun Tang (JIRA)" <ji...@apache.org> on 2018/10/20 04:17:00 UTC

[jira] [Updated] (YARN-8918) [Submarine] Correct method usage of str.subString(0, str.length()) in CliUtils

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

Zhankun Tang updated YARN-8918:
-------------------------------
    Summary: [Submarine] Correct method usage of str.subString(0, str.length()) in CliUtils  (was: [Submarine] Remove redundant method of str.subString(0, str.length()))

> [Submarine] Correct method usage of str.subString(0, str.length()) in CliUtils
> ------------------------------------------------------------------------------
>
>                 Key: YARN-8918
>                 URL: https://issues.apache.org/jira/browse/YARN-8918
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Zhankun Tang
>            Assignee: Zhankun Tang
>            Priority: Minor
>         Attachments: YARN-8918-trunk.001.patch, YARN-8918-trunk.002.patch, YARN-8918-trunk.003.patch
>
>
> 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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org