Sho SHIMIZU
Committed by Ray Milkey

Remove unnecessary modifiers

Change-Id: I890c9b33ae8e8402520230860fa575a9ec757b2d
...@@ -27,7 +27,7 @@ public interface Subnet { ...@@ -27,7 +27,7 @@ public interface Subnet {
27 /** 27 /**
28 * Coarse classification of the type of the ipV6Mode. 28 * Coarse classification of the type of the ipV6Mode.
29 */ 29 */
30 - public enum Mode { 30 + enum Mode {
31 DHCPV6_STATEFUL, DHCPV6_STATELESS, SLAAC 31 DHCPV6_STATEFUL, DHCPV6_STATELESS, SLAAC
32 } 32 }
33 33
......
...@@ -23,7 +23,7 @@ public interface TenantNetwork { ...@@ -23,7 +23,7 @@ public interface TenantNetwork {
23 /** 23 /**
24 * Coarse classification of the state of the tenantNetwork. 24 * Coarse classification of the state of the tenantNetwork.
25 */ 25 */
26 - public enum State { 26 + enum State {
27 /** 27 /**
28 * Signifies that a tenantNetwork is currently active.This state means 28 * Signifies that a tenantNetwork is currently active.This state means
29 * that this network is available. 29 * that this network is available.
...@@ -46,7 +46,7 @@ public interface TenantNetwork { ...@@ -46,7 +46,7 @@ public interface TenantNetwork {
46 /** 46 /**
47 * Coarse classification of the type of the tenantNetwork. 47 * Coarse classification of the type of the tenantNetwork.
48 */ 48 */
49 - public enum Type { 49 + enum Type {
50 /** 50 /**
51 * Signifies that a tenantNetwork is local. 51 * Signifies that a tenantNetwork is local.
52 */ 52 */
......
...@@ -28,7 +28,7 @@ public interface VirtualPort { ...@@ -28,7 +28,7 @@ public interface VirtualPort {
28 /** 28 /**
29 * Coarse classification of the type of the virtual port. 29 * Coarse classification of the type of the virtual port.
30 */ 30 */
31 - public enum State { 31 + enum State {
32 /** 32 /**
33 * Signifies that a virtualPort is currently active,This state mean that 33 * Signifies that a virtualPort is currently active,This state mean that
34 * this virtualPort is available. 34 * this virtualPort is available.
...@@ -37,7 +37,7 @@ public interface VirtualPort { ...@@ -37,7 +37,7 @@ public interface VirtualPort {
37 /** 37 /**
38 * Signifies that a virtualPort is currently unavailable. 38 * Signifies that a virtualPort is currently unavailable.
39 */ 39 */
40 - DOWN 40 + DOWN;
41 } 41 }
42 42
43 /** 43 /**
......
...@@ -23,7 +23,7 @@ import org.onlab.packet.IpAddress; ...@@ -23,7 +23,7 @@ import org.onlab.packet.IpAddress;
23 public interface ControllerNode { 23 public interface ControllerNode {
24 24
25 /** Represents the operational state of the instance. */ 25 /** Represents the operational state of the instance. */
26 - public enum State { 26 + enum State {
27 /** 27 /**
28 * Signifies that the instance is active and operating normally. 28 * Signifies that the instance is active and operating normally.
29 */ 29 */
......
...@@ -27,12 +27,12 @@ public interface CoreService { ...@@ -27,12 +27,12 @@ public interface CoreService {
27 /** 27 /**
28 * Name of the core "application". 28 * Name of the core "application".
29 */ 29 */
30 - static final String CORE_APP_NAME = "org.onosproject.core"; 30 + String CORE_APP_NAME = "org.onosproject.core";
31 31
32 /** 32 /**
33 * Identifier of the core "provider". 33 * Identifier of the core "provider".
34 */ 34 */
35 - static final ProviderId CORE_PROVIDER_ID = new ProviderId("core", CORE_APP_NAME); 35 + ProviderId CORE_PROVIDER_ID = new ProviderId("core", CORE_APP_NAME);
36 36
37 /** 37 /**
38 * Returns the product version. 38 * Returns the product version.
......
...@@ -32,7 +32,7 @@ public interface MetricsHelper { ...@@ -32,7 +32,7 @@ public interface MetricsHelper {
32 * 32 *
33 * @return MetricService instance 33 * @return MetricService instance
34 */ 34 */
35 - abstract MetricsService metricsService(); 35 + MetricsService metricsService();
36 36
37 37
38 /** 38 /**
......
...@@ -25,7 +25,7 @@ public interface Device extends Element { ...@@ -25,7 +25,7 @@ public interface Device extends Element {
25 /** 25 /**
26 * Coarse classification of the type of the infrastructure device. 26 * Coarse classification of the type of the infrastructure device.
27 */ 27 */
28 - public enum Type { 28 + enum Type {
29 SWITCH, ROUTER, ROADM, OTN, ROADM_OTN, FIREWALL, BALANCER, IPS, IDS, CONTROLLER, 29 SWITCH, ROUTER, ROADM, OTN, ROADM_OTN, FIREWALL, BALANCER, IPS, IDS, CONTROLLER,
30 VIRTUAL, FIBER_SWITCH, MICROWAVE, OTHER 30 VIRTUAL, FIBER_SWITCH, MICROWAVE, OTHER
31 } 31 }
......
...@@ -25,8 +25,8 @@ import org.onosproject.net.DeviceId; ...@@ -25,8 +25,8 @@ import org.onosproject.net.DeviceId;
25 */ 25 */
26 public interface FlowRule { 26 public interface FlowRule {
27 27
28 - static final int MAX_TIMEOUT = 60; 28 + int MAX_TIMEOUT = 60;
29 - static final int MIN_PRIORITY = 0; 29 + int MIN_PRIORITY = 0;
30 30
31 /** 31 /**
32 * The FlowRule type is used to determine in which table the flow rule needs 32 * The FlowRule type is used to determine in which table the flow rule needs
...@@ -36,7 +36,7 @@ public interface FlowRule { ...@@ -36,7 +36,7 @@ public interface FlowRule {
36 * @deprecated in Cardinal Release 36 * @deprecated in Cardinal Release
37 */ 37 */
38 @Deprecated 38 @Deprecated
39 - static enum Type { 39 + enum Type {
40 /* 40 /*
41 * Default type - used in flow rule for single table switch NOTE: this 41 * Default type - used in flow rule for single table switch NOTE: this
42 * setting should not be used as Table 0 in a multi-table pipeline 42 * setting should not be used as Table 0 in a multi-table pipeline
......
...@@ -32,7 +32,7 @@ public interface FlowRuleService ...@@ -32,7 +32,7 @@ public interface FlowRuleService
32 /** 32 /**
33 * The topic used for obtaining globally unique ids. 33 * The topic used for obtaining globally unique ids.
34 */ 34 */
35 - static String FLOW_OP_TOPIC = "flow-ops-ids"; 35 + String FLOW_OP_TOPIC = "flow-ops-ids";
36 36
37 /** 37 /**
38 * Returns the number of flow rules in the system. 38 * Returns the number of flow rules in the system.
......
...@@ -26,9 +26,9 @@ import java.util.Optional; ...@@ -26,9 +26,9 @@ import java.util.Optional;
26 @Beta 26 @Beta
27 public interface Objective { 27 public interface Objective {
28 28
29 - static final boolean DEFAULT_PERMANENT = true; 29 + boolean DEFAULT_PERMANENT = true;
30 - static final int DEFAULT_TIMEOUT = 0; 30 + int DEFAULT_TIMEOUT = 0;
31 - static final int DEFAULT_PRIORITY = 32768; 31 + int DEFAULT_PRIORITY = 32768;
32 32
33 /** 33 /**
34 * Type of operation. 34 * Type of operation.
......
...@@ -34,7 +34,7 @@ public enum PacketPriority { ...@@ -34,7 +34,7 @@ public enum PacketPriority {
34 34
35 private final int priorityValue; 35 private final int priorityValue;
36 36
37 - private PacketPriority(int priorityValue) { 37 + PacketPriority(int priorityValue) {
38 this.priorityValue = priorityValue; 38 this.priorityValue = priorityValue;
39 } 39 }
40 40
...@@ -50,4 +50,4 @@ public enum PacketPriority { ...@@ -50,4 +50,4 @@ public enum PacketPriority {
50 public String toString() { 50 public String toString() {
51 return String.valueOf(priorityValue); 51 return String.valueOf(priorityValue);
52 } 52 }
53 -}
...\ No newline at end of file ...\ No newline at end of file
53 +}
......
...@@ -22,8 +22,8 @@ import static com.google.common.base.Preconditions.checkArgument; ...@@ -22,8 +22,8 @@ import static com.google.common.base.Preconditions.checkArgument;
22 */ 22 */
23 public interface PacketProcessor { 23 public interface PacketProcessor {
24 24
25 - static final int ADVISOR_MAX = Integer.MAX_VALUE / 3; 25 + int ADVISOR_MAX = Integer.MAX_VALUE / 3;
26 - static final int DIRECTOR_MAX = (Integer.MAX_VALUE / 3) * 2; 26 + int DIRECTOR_MAX = (Integer.MAX_VALUE / 3) * 2;
27 static final int OBSERVER_MAX = Integer.MAX_VALUE; 27 static final int OBSERVER_MAX = Integer.MAX_VALUE;
28 28
29 /** 29 /**
......
...@@ -31,7 +31,7 @@ public final class DatabaseUpdate { ...@@ -31,7 +31,7 @@ public final class DatabaseUpdate {
31 /** 31 /**
32 * Type of database update operation. 32 * Type of database update operation.
33 */ 33 */
34 - public static enum Type { 34 + public enum Type {
35 /** 35 /**
36 * Insert/Update entry without any checks. 36 * Insert/Update entry without any checks.
37 */ 37 */
......