Refactor ForwardingRulesmanager
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / action / SetVlanCfi.java
index 0385f63d561f43b21064036c920ff2734ebb8d71..0c90fb41fc97e185dc3ff56081f488f4186477aa 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
  *
@@ -20,13 +19,14 @@ import javax.xml.bind.annotation.XmlRootElement;
  */
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-
 public class SetVlanCfi extends Action {
-        @XmlElement
+    private static final long serialVersionUID = 1L;
+    @XmlElement
     private int cfi;
 
     /* Dummy constructor for JAXB */
-    private SetVlanCfi () {
+    @SuppressWarnings("unused")
+    private SetVlanCfi() {
     }
 
     public SetVlanCfi(int cfi) {
@@ -37,6 +37,7 @@ public class SetVlanCfi extends Action {
 
     /**
      * Returns the 802.1q CFI value that this action will set
+     *
      * @return
      */
     public int getCfi() {
@@ -45,15 +46,19 @@ public class SetVlanCfi extends Action {
 
     @Override
     public boolean equals(Object obj) {
-        if (this == obj)
+        if (this == obj) {
             return true;
-        if (!super.equals(obj))
+        }
+        if (!super.equals(obj)) {
             return false;
-        if (getClass() != obj.getClass())
+        }
+        if (getClass() != obj.getClass()) {
             return false;
+        }
         SetVlanCfi other = (SetVlanCfi) obj;
-        if (cfi != other.cfi)
+        if (cfi != other.cfi) {
             return false;
+        }
         return true;
     }