Bug 2245 - Fixed 'If Stmts Must Use Braces'
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / extensibility / EnhancedMessageTypeKey.java
index 15919e4f38805681cf18a9106e853b99f6c0b4c8..a21572104c08343d6ee1d19cbe370662fbd8b11b 100644 (file)
@@ -30,19 +30,24 @@ public class EnhancedMessageTypeKey<E, F> extends MessageTypeKey<E> {
 \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 (getClass() != obj.getClass())\r
+        }\r
+        if (getClass() != obj.getClass()) {\r
             return false;\r
+        }\r
         @SuppressWarnings("rawtypes")\r
         EnhancedMessageTypeKey other = (EnhancedMessageTypeKey) obj;\r
         if (msgType2 == null) {\r
-            if (other.msgType2 != null)\r
+            if (other.msgType2 != null) {\r
                 return false;\r
-        } else if (!msgType2.getName().equals(other.msgType2.getName()))\r
+            }\r
+        } else if (!msgType2.getName().equals(other.msgType2.getName())) {\r
             return false;\r
+        }\r
         return true;\r
     }\r
 \r
@@ -50,4 +55,4 @@ public class EnhancedMessageTypeKey<E, F> extends MessageTypeKey<E> {
     public String toString() {\r
         return super.toString() + " msgType2: " + msgType2.getName();\r
     }\r
-}\r
+}
\ No newline at end of file