Bug 2245 - Fixed 'If Stmts Must Use Braces'
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / connection / RpcResponseKey.java
index a01098d4ccbcdb80b95871e442c9b2d05984702a..5ec0c0b164bc83bea40eaaad5471ee0b48fb0b68 100644 (file)
@@ -52,20 +52,25 @@ public class RpcResponseKey {
 
     @Override
     public boolean equals(Object obj) {
-        if (this == obj)
+        if (this == obj) {
             return true;
-        if (obj == null)
+        }
+        if (obj == null) {
             return false;
-        if (getClass() != obj.getClass())
+        }
+        if (getClass() != obj.getClass()) {
             return false;
+        }
         RpcResponseKey other = (RpcResponseKey) obj;
         if (outputClazz == null) {
-            if (other.outputClazz != null)
+            if (other.outputClazz != null) {
                 return false;
-        } else if (!outputClazz.equals(other.outputClazz))
+            }
+        } else if (!outputClazz.equals(other.outputClazz)) {
             return false;
 //        if (xid != other.xid)
 //            return false;
+        }
         return true;
     }
 
@@ -74,5 +79,4 @@ public class RpcResponseKey {
         return "RpcResultKey [xid=" + xid + ", outputClazz=" + outputClazz
                 + "]";
     }
-
-}
+}
\ No newline at end of file