mdsalutil-api clean up Checkstyle violations (not enforced yet)
[genius.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / genius / mdsalutil / matches / MatchIcmpv4.java
index 86b0ffc62cd5e3047551070f24a69b4358daedf1..101a6fbbdeb12910a1ff4fad5a32056f9be526d8 100644 (file)
@@ -42,22 +42,30 @@ public class MatchIcmpv4 extends MatchInfoHelper<Icmpv4Match, Icmpv4MatchBuilder
     }
 
     @Override
-    public boolean equals(Object o) {
-        if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
-        if (!super.equals(o)) return false;
+    public boolean equals(Object other) {
+        if (this == other) {
+            return true;
+        }
+        if (other == null || getClass() != other.getClass()) {
+            return false;
+        }
+        if (!super.equals(other)) {
+            return false;
+        }
 
-        MatchIcmpv4 that = (MatchIcmpv4) o;
+        MatchIcmpv4 that = (MatchIcmpv4) other;
 
-        if (type != that.type) return false;
+        if (type != that.type) {
+            return false;
+        }
         return code == that.code;
     }
 
     @Override
     public int hashCode() {
         int result = super.hashCode();
-        result = 31 * result + (int) type;
-        result = 31 * result + (int) code;
+        result = 31 * result + type;
+        result = 31 * result + code;
         return result;
     }
 }