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/11/12 04:22:00 UTC

[jira] [Updated] (YARN-8997) [Submarine] Small refactors of modifier, condition check and redundant local variables

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

Zhankun Tang updated YARN-8997:
-------------------------------
    Summary: [Submarine] Small refactors of modifier, condition check and redundant local variables   (was: [Submarine] Small refactors of modifier, )

> [Submarine] Small refactors of modifier, condition check and redundant local variables 
> ---------------------------------------------------------------------------------------
>
>                 Key: YARN-8997
>                 URL: https://issues.apache.org/jira/browse/YARN-8997
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Zhankun Tang
>            Assignee: Zhankun Tang
>            Priority: Minor
>         Attachments: YARN-8997-trunk-001.patch
>
>
> In YarnServiceJobSubmitter#needHdfs. Below code can be simplified to just one line.
> {code:java}
> if (content != null && content.contains("hdfs://")) {
>   return true;
> }
> return false;{code}
> {code:java}
> return content != null && content.contains("hdfs://");{code}



--
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