YARN-6646. Modifier 'static' is redundant for inner enums

(Contributed by ZhangBing Lin via Daniel Templeton)
This commit is contained in:
Daniel Templeton 2017-05-26 12:05:48 -07:00
parent aea42930bb
commit d81372dfad
10 changed files with 12 additions and 12 deletions

View File

@ -43,7 +43,7 @@ public class TimelineMetric {
/**
* Type of metric.
*/
public static enum Type {
public enum Type {
SINGLE_VALUE,
TIME_SERIES
}

View File

@ -179,13 +179,13 @@ public class ApplicationMaster {
@VisibleForTesting
@Private
public static enum DSEvent {
public enum DSEvent {
DS_APP_ATTEMPT_START, DS_APP_ATTEMPT_END, DS_CONTAINER_START, DS_CONTAINER_END
}
@VisibleForTesting
@Private
public static enum DSEntity {
public enum DSEntity {
DS_APP_ATTEMPT, DS_CONTAINER
}

View File

@ -406,7 +406,7 @@ public void getContainerStatusAsync(ContainerId containerId, NodeId nodeId) {
}
}
protected static enum ContainerState {
protected enum ContainerState {
PREP, FAILED, RUNNING, DONE,
}
@ -423,7 +423,7 @@ protected ContainerEventProcessor getContainerEventProcessor(
/**
* The type of the event of interacting with a container
*/
protected static enum ContainerEventType {
protected enum ContainerEventType {
START_CONTAINER,
STOP_CONTAINER,
QUERY_CONTAINER,

View File

@ -740,7 +740,7 @@ private void checkAccess(ApplicationReportExt app)
}
}
private static enum ApplicationReportField {
private enum ApplicationReportField {
ALL, // retrieve all the fields
USER_AND_ACLS // retrieve user and ACLs info only
}

View File

@ -43,7 +43,7 @@ public Reason getReason() {
return reason;
}
public static enum Reason {
public enum Reason {
/**
* Application is killed as NodeManager is shut down
*/

View File

@ -42,7 +42,7 @@ public Reason getReason() {
return reason;
}
public static enum Reason {
public enum Reason {
/**
* Container is killed as NodeManager is shutting down
*/

View File

@ -33,7 +33,7 @@
public class NMAuditLogger {
private static final Log LOG = LogFactory.getLog(NMAuditLogger.class);
static enum Keys {USER, OPERATION, TARGET, RESULT, IP,
enum Keys {USER, OPERATION, TARGET, RESULT, IP,
DESCRIPTION, APPID, CONTAINERID}
public static class AuditConstants {

View File

@ -37,7 +37,7 @@
public class RMAuditLogger {
private static final Log LOG = LogFactory.getLog(RMAuditLogger.class);
static enum Keys {USER, OPERATION, TARGET, RESULT, IP, PERMISSIONS,
enum Keys {USER, OPERATION, TARGET, RESULT, IP, PERMISSIONS,
DESCRIPTION, APPID, APPATTEMPTID, CONTAINERID,
CALLERCONTEXT, CALLERSIGNATURE, RESOURCE}

View File

@ -118,7 +118,7 @@ protected AsyncDispatcher createDispatcher() {
/**
* EventType which is used while publishing the events.
*/
protected static enum SystemMetricsEventType {
protected enum SystemMetricsEventType {
PUBLISH_ENTITY, PUBLISH_APPLICATION_FINISHED_ENTITY
}

View File

@ -41,7 +41,7 @@ public class TimelineFilterList extends TimelineFilter {
*/
@Private
@Unstable
public static enum Operator {
public enum Operator {
AND,
OR
}