mdsalutil-api clean up Checkstyle violations (not enforced yet)
[genius.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / genius / mdsalutil / matches / MatchEthernetType.java
index 2d7225183351f1367efb3bd3ba31451212cc03d1..8b0851761cb0bec9c06430432aae0fe6d054aa1d 100644 (file)
@@ -45,12 +45,18 @@ public class MatchEthernetType extends MatchInfoHelper<EthernetMatch, EthernetMa
     }
 
     @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;
+        }
 
-        MatchEthernetType that = (MatchEthernetType) o;
+        MatchEthernetType that = (MatchEthernetType) other;
 
         return type == that.type;
     }
@@ -58,7 +64,7 @@ public class MatchEthernetType extends MatchInfoHelper<EthernetMatch, EthernetMa
     @Override
     public int hashCode() {
         int result = super.hashCode();
-        result = 31 * result + (int) (type ^ (type >>> 32));
+        result = 31 * result + (int) (type ^ type >>> 32);
         return result;
     }
 }