Fix checkstyle if-statements must use braces liblldp
[controller.git] / opendaylight / commons / liblldp / src / main / java / org / opendaylight / controller / liblldp / DataLinkAddress.java
index d617c05a5a941afe3ebb2f9b2484535835c0d6f7..cf56aebe6085dd0f8db9b4f68f5629666c3212b6 100644 (file)
@@ -74,18 +74,23 @@ abstract public class DataLinkAddress implements Serializable {
 
     @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;
+        }
         DataLinkAddress other = (DataLinkAddress) obj;
         if (name == null) {
-            if (other.name != null)
+            if (other.name != null) {
                 return false;
-        } else if (!name.equals(other.name))
+            }
+        } else if (!name.equals(other.name)) {
             return false;
+        }
         return true;
     }