mdsalutil-api clean up Checkstyle violations (not enforced yet)
[genius.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / genius / mdsalutil / matches / MatchIpProtocol.java
index 2ada1b03b1b9760ce2edca37971563b16b40883b..80adf2ed105e847a00f5cf75fc38a438d00c8835 100644 (file)
@@ -42,12 +42,18 @@ public class MatchIpProtocol extends MatchInfoHelper<IpMatch, IpMatchBuilder> {
     }
 
     @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;
+        }
 
-        MatchIpProtocol that = (MatchIpProtocol) o;
+        MatchIpProtocol that = (MatchIpProtocol) other;
 
         return protocol == that.protocol;
     }
@@ -55,7 +61,7 @@ public class MatchIpProtocol extends MatchInfoHelper<IpMatch, IpMatchBuilder> {
     @Override
     public int hashCode() {
         int result = super.hashCode();
-        result = 31 * result + (int) protocol;
+        result = 31 * result + protocol;
         return result;
     }
 }