You are viewing a plain text version of this content. The canonical link for it is here.
Posted to submarine-dev@hadoop.apache.org by "Zhankun Tang (Jira)" <ji...@apache.org> on 2019/09/23 02:44:00 UTC
[jira] [Updated] (SUBMARINE-24) [Submarine] Correct method usage of
str.subString in CliUtils
[ https://issues.apache.org/jira/browse/SUBMARINE-24?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhankun Tang updated SUBMARINE-24:
----------------------------------
Fix Version/s: 0.2.0
> [Submarine] Correct method usage of str.subString in CliUtils
> -------------------------------------------------------------
>
> Key: SUBMARINE-24
> URL: https://issues.apache.org/jira/browse/SUBMARINE-24
> Project: Hadoop Submarine
> Issue Type: New Feature
> Reporter: Zhankun Tang
> Assignee: Zhankun Tang
> Priority: Minor
> Fix For: 0.2.0
>
> Attachments: YARN-8918-trunk.001.patch, YARN-8918-trunk.002.patch, YARN-8918-trunk.003.patch
>
>
> In CliUtils.java (line 74), there's uncorrect code block,:
> {code:java}
> if (resourcesStr.endsWith("]")) {
> resourcesStr = resourcesStr.substring(0, resourcesStr.length());
> }{code}
> Above if block will execute "resourceStr = resourceStr". It should be "length() -1"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)