Provide consistent hash code for enums and use it too
[controller.git] / opendaylight / forwardingrulesmanager / implementation / src / main / java / org / opendaylight / controller / forwardingrulesmanager / implementation / data / FlowEntryDistributionOrder.java
index 672a290a2427f6bb1676ab31f3b72e21ffaa922e..b55a7e372b83d29bb7f52b50fc8548d5f0afc09f 100644 (file)
@@ -79,7 +79,7 @@ public final class FlowEntryDistributionOrder implements Serializable {
         int result = 1;
         result = (prime * result) + ((entry == null) ? 0 : entry.hashCode());
         result = (prime * result) + ((requestorController == null) ? 0 : requestorController.hashCode());
-        result = (prime * result) + ((upType == null) ? 0 : upType.hashCode());
+        result = (prime * result) + ((upType == null) ? 0 : upType.calculateConsistentHashCode());
         return result;
     }