Bug 2245 - Fixed 'If Stmts Must Use Braces'
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / extensibility / MessageCodeKey.java
index 86d5a4d158133504413c65cfe9657224ba211dce..56b6bb1a8a123457cd96dede185bef13b658565e 100644 (file)
@@ -40,22 +40,29 @@ public class MessageCodeKey {
 \r
     @Override\r
     public boolean equals(Object obj) {\r
-        if (this == obj)\r
+        if (this == obj) {\r
             return true;\r
-        if (obj == null)\r
+        }\r
+        if (obj == null) {\r
             return false;\r
-        if (!(obj instanceof MessageCodeKey))\r
+        }\r
+        if (!(obj instanceof MessageCodeKey)) {\r
             return false;\r
+        }\r
         MessageCodeKey other = (MessageCodeKey) obj;\r
         if (clazz == null) {\r
-            if (other.clazz != null)\r
+            if (other.clazz != null) {\r
                 return false;\r
-        } else if (!clazz.equals(other.clazz))\r
+            }\r
+        } else if (!clazz.equals(other.clazz)) {\r
             return false;\r
-        if (msgType != other.msgType)\r
+        }\r
+        if (msgType != other.msgType) {\r
             return false;\r
-        if (msgVersion != other.msgVersion)\r
+        }\r
+        if (msgVersion != other.msgVersion) {\r
             return false;\r
+        }\r
         return true;\r
     }\r
 \r
@@ -63,5 +70,4 @@ public class MessageCodeKey {
     public String toString() {\r
         return "msgVersion: " + msgVersion + " objectClass: " + clazz.getName() + " msgType: " + msgType;\r
     }\r
-\r
 }
\ No newline at end of file