Bug 2245 - Fixed 'If Stmts Must Use Braces'
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / keys / InstructionSerializerKey.java
index 899568dc24ae3ac9457bc33f571f92a553eb8f26..7759c0bf0b64e1431b0ffbefabc44d1928b9809f 100644 (file)
@@ -46,23 +46,30 @@ public class InstructionSerializerKey<TYPE extends InstructionBase>
 \r
     @Override\r
     public boolean equals(Object obj) {\r
-        if (this == obj)\r
+        if (this == obj) {\r
             return true;\r
-        if (!super.equals(obj))\r
+        }\r
+        if (!super.equals(obj)) {\r
             return false;\r
-        if (!(obj instanceof InstructionSerializerKey))\r
+        }\r
+        if (!(obj instanceof InstructionSerializerKey)) {\r
             return false;\r
+        }\r
         InstructionSerializerKey<?> other = (InstructionSerializerKey<?>) obj;\r
         if (experimenterId == null) {\r
-            if (other.experimenterId != null)\r
+            if (other.experimenterId != null) {\r
                 return false;\r
-        } else if (!experimenterId.equals(other.experimenterId))\r
+            }\r
+        } else if (!experimenterId.equals(other.experimenterId)) {\r
             return false;\r
+        }\r
         if (instructionType == null) {\r
-            if (other.instructionType != null)\r
+            if (other.instructionType != null) {\r
                 return false;\r
-        } else if (!instructionType.equals(other.instructionType))\r
+            }\r
+        } else if (!instructionType.equals(other.instructionType)) {\r
             return false;\r
+        }\r
         return true;\r
     }\r
 \r