Clean up enums
authorStephen Kitt <skitt@redhat.com>
Mon, 2 Nov 2015 09:37:00 +0000 (10:37 +0100)
committerStephen Kitt <skitt@redhat.com>
Mon, 2 Nov 2015 09:37:00 +0000 (10:37 +0100)
enums are static, and their constructors private, by default.

Change-Id: I6be729d10fa2e81b87a5a4afcc91ed1a30e3ea97
Signed-off-by: Stephen Kitt <skitt@redhat.com>
openstack/net-virt-it/src/test/java/org/opendaylight/ovsdb/openstack/netvirt/it/SouthboundConstants.java
openstack/net-virt-providers/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/providers/openflow13/Service.java
openstack/net-virt-providers/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/providers/openflow13/services/arp/ArpOperation.java

index e302c2b42a70afbc1abeb2c9e012d32ab90a7fcf..29109865b18d2e098e0347be2eec8093b88546dc 100755 (executable)
@@ -89,7 +89,7 @@ public class SouthboundConstants {
             .build();
     public static final String IID_EXTERNAL_ID_KEY = "opendaylight-iid";
 
-    public static enum VLANMODES {
+    public enum VLANMODES {
         ACCESS("access"),
         NATIVE_TAGGED("native-tagged"),
         NATIVE_UNTAGGED("native-untagged"),
@@ -97,7 +97,7 @@ public class SouthboundConstants {
 
         private final String mode;
 
-        private VLANMODES(String mode) {
+        VLANMODES(String mode) {
             this.mode = mode;
         }
         @Override
index 30bec35cdaf0fe620babc66ed073b6ad3d2b1a87..badde08175e9c141537f22272ccfa90165642459 100644 (file)
@@ -27,7 +27,7 @@ public enum Service {
     short table;
     String description;
 
-    private Service (short table, String description)  {
+    Service(short table, String description)  {
         this.table = table;
         this.description = description;
     }
index b65e5a26946421c577b53c99c1a745d10c48ce8f..5eb5bff6622029555378a192b76713894b23cdd5 100644 (file)
@@ -16,7 +16,7 @@ public enum ArpOperation {
 
     private final int intOperation;
 
-    private ArpOperation(int operationNumber) {
+    ArpOperation(int operationNumber) {
         this.intOperation = operationNumber;
     }