Provide consistent hash code for enums and use it too
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / utils / Status.java
index a7a44456cc3011ec6e1957395f65dbcf2fccd9af..04364bbeb472fbc5a1e973aff3980ce98ba46efe 100644 (file)
@@ -123,7 +123,7 @@ public class Status implements Serializable {
     public int hashCode() {
         final int prime = 31;
         int result = 1;
-        result = prime * result + ((code == null) ? 0 : code.hashCode());
+        result = prime * result + ((code == null) ? 0 : code.calculateConsistentHashCode());
         return result;
     }