BUG-2218: Keep existing link augmentations during discovery process
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / core / UpdateType.java
index 84883c6adc66a06cb9058e6f503dbc70b16816ef..6642eaf44bb1a489d8ab06cb3717c980b251ff89 100644 (file)
@@ -9,7 +9,6 @@
 
 package org.opendaylight.controller.sal.core;
 
-import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
 
 /**
  * @file   UpdateType.java
@@ -30,8 +29,11 @@ public enum UpdateType {
         return this.name;
     }
 
-    @Override
-    public String toString() {
-        return "UpdateType[" + ReflectionToStringBuilder.toString(this) + "]";
+    public int calculateConsistentHashCode() {
+        if (this.name != null) {
+            return this.name.hashCode();
+        } else {
+            return 0;
+        }
     }
 }