Repository: hadoop Updated Branches: refs/heads/branch-3.2 41c4e9583 -> 872081434
YARN-8976. Remove redundant modifiers in interface ApplicationConstants. Contributed by Zhankun Tang. (cherry picked from commit 482716e5a4d1edfd3aa6a1ae65a58652f89375f1) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/4ff7255d Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/4ff7255d Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/4ff7255d Branch: refs/heads/branch-3.2 Commit: 4ff7255d6e17ed9d948f85a2f6a9a980eedc0010 Parents: 41c4e95 Author: Weiwei Yang <[email protected]> Authored: Wed Nov 7 10:48:07 2018 +0800 Committer: Weiwei Yang <[email protected]> Committed: Wed Nov 7 10:49:09 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/4ff7255d/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 b63fe61..065f9b4 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; /** @@ -52,14 +52,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 = "<LOG_DIR>"; + String LOG_DIR_EXPANSION_VAR = "<LOG_DIR>"; /** * This constant is used to construct class path and it will be replaced with @@ -70,7 +70,7 @@ public interface ApplicationConstants { */ @Public @Unstable - public static final String CLASS_PATH_SEPARATOR= "<CPS>"; + String CLASS_PATH_SEPARATOR= "<CPS>"; /** * The following two constants are used to expand parameter and it will be @@ -83,7 +83,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 @@ -92,11 +92,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. @@ -114,7 +114,7 @@ public interface ApplicationConstants { * Some of the environment variables for applications are <em>final</em> * i.e. they cannot be modified by the applications. */ - public enum Environment { + enum Environment { /** * $USER * Final, non-modifiable. @@ -254,7 +254,7 @@ public interface ApplicationConstants { "YARN_CONTAINER_RUNTIME_DOCKER_RUN_OVERRIDE_DISABLE"); private final String variable; - private Environment(String variable) { + Environment(String variable) { this.variable = variable; } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
