Merge "Fix exception in HostTracker when non-OF node is removed."
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / core / Tables.java
index 4775aa8712f856fb7969bdc1e340a2b9d5643658..22cff90bb5dd3a9fc7f3852e7e100ab9b5fb65ff 100644 (file)
@@ -12,10 +12,6 @@ package org.opendaylight.controller.sal.core;
 import javax.xml.bind.annotation.XmlElement;
 import javax.xml.bind.annotation.XmlRootElement;
 
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
-
 /**
  * @file   Tables.java
  *
@@ -59,16 +55,28 @@ public class Tables extends Property {
     
     @Override
     public int hashCode() {
-        return HashCodeBuilder.reflectionHashCode(this);
+        final int prime = 31;
+        int result = super.hashCode();
+        result = prime * result + tablesValue;
+        return result;
     }
 
     @Override
     public boolean equals(Object obj) {
-        return EqualsBuilder.reflectionEquals(this, obj);
+        if (this == obj)
+            return true;
+        if (!super.equals(obj))
+            return false;
+        if (getClass() != obj.getClass())
+            return false;
+        Tables other = (Tables) obj;
+        if (tablesValue != other.tablesValue)
+            return false;
+        return true;
     }
 
     @Override
     public String toString() {
-        return "Tables[" + ReflectionToStringBuilder.toString(this) + "]";
+        return "Tables[" + tablesValue + "]";
     }
 }