From common-commits-return-90540-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Thu Nov 8 19:11:20 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 051B718072F for ; Thu, 8 Nov 2018 19:11:19 +0100 (CET) Received: (qmail 31381 invoked by uid 500); 8 Nov 2018 18:11:14 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 30881 invoked by uid 99); 8 Nov 2018 18:11:14 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2018 18:11:14 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 51F4CE125E; Thu, 8 Nov 2018 18:11:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aengineer@apache.org To: common-commits@hadoop.apache.org Date: Thu, 08 Nov 2018 18:11:29 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [17/29] hadoop git commit: YARN-8976. Remove redundant modifiers in interface ApplicationConstants. Contributed by Zhankun Tang. YARN-8976. Remove redundant modifiers in interface ApplicationConstants. Contributed by Zhankun Tang. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/482716e5 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/482716e5 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/482716e5 Branch: refs/heads/HDDS-4 Commit: 482716e5a4d1edfd3aa6a1ae65a58652f89375f1 Parents: 951c98f Author: Weiwei Yang Authored: Wed Nov 7 10:48:07 2018 +0800 Committer: Weiwei Yang Committed: Wed Nov 7 10:48:07 2018 +0800 ---------------------------------------------------------------------- .../hadoop/yarn/api/ApplicationConstants.java | 22 ++++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/482716e5/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationConstants.java ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationConstants.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationConstants.java index eb03fb2..f5d8f02 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationConstants.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationConstants.java @@ -39,12 +39,12 @@ public interface ApplicationConstants { * The environment variable for APP_SUBMIT_TIME. Set in AppMaster environment * only */ - public static final String APP_SUBMIT_TIME_ENV = "APP_SUBMIT_TIME_ENV"; + String APP_SUBMIT_TIME_ENV = "APP_SUBMIT_TIME_ENV"; /** * The cache file into which container token is written */ - public static final String CONTAINER_TOKEN_FILE_ENV_NAME = + String CONTAINER_TOKEN_FILE_ENV_NAME = UserGroupInformation.HADOOP_TOKEN_FILE_LOCATION; /** @@ -74,14 +74,14 @@ public interface ApplicationConstants { * ApplicationMaster's environment only. This states that for all non-relative * web URLs in the app masters web UI what base should they have. */ - public static final String APPLICATION_WEB_PROXY_BASE_ENV = + String APPLICATION_WEB_PROXY_BASE_ENV = "APPLICATION_WEB_PROXY_BASE"; /** * The temporary environmental variable for container log directory. This * should be replaced by real container log directory on container launch. */ - public static final String LOG_DIR_EXPANSION_VAR = ""; + String LOG_DIR_EXPANSION_VAR = ""; /** * This constant is used to construct class path and it will be replaced with @@ -92,7 +92,7 @@ public interface ApplicationConstants { */ @Public @Unstable - public static final String CLASS_PATH_SEPARATOR= ""; + String CLASS_PATH_SEPARATOR= ""; /** * The following two constants are used to expand parameter and it will be @@ -105,7 +105,7 @@ public interface ApplicationConstants { */ @Public @Unstable - public static final String PARAMETER_EXPANSION_LEFT="{{"; + String PARAMETER_EXPANSION_LEFT="{{"; /** * User has to use this constant to construct class path if user wants @@ -114,11 +114,11 @@ public interface ApplicationConstants { */ @Public @Unstable - public static final String PARAMETER_EXPANSION_RIGHT="}}"; + String PARAMETER_EXPANSION_RIGHT="}}"; - public static final String STDERR = "stderr"; + String STDERR = "stderr"; - public static final String STDOUT = "stdout"; + String STDOUT = "stdout"; /** * The type of launch for the container. @@ -136,7 +136,7 @@ public interface ApplicationConstants { * Some of the environment variables for applications are final * i.e. they cannot be modified by the applications. */ - public enum Environment { + enum Environment { /** * $USER * Final, non-modifiable. @@ -283,7 +283,7 @@ public interface ApplicationConstants { "YARN_CONTAINER_RUNTIME_YARN_SYSFS_ENABLE"); private final String variable; - private Environment(String variable) { + Environment(String variable) { this.variable = variable; } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org