Reverting ElementId hashCode + equals logic, which was breaking TopologyManagerTest
- requires further investigation later
Change-Id: I22de937c1ffdd60f674813e5e5dd10b0ddce524b
diff --git a/core/api/src/main/java/org/onlab/onos/net/ElementId.java b/core/api/src/main/java/org/onlab/onos/net/ElementId.java
index 3f9c88d..d985be8 100644
--- a/core/api/src/main/java/org/onlab/onos/net/ElementId.java
+++ b/core/api/src/main/java/org/onlab/onos/net/ElementId.java
@@ -38,7 +38,7 @@
@Override
public int hashCode() {
- return Objects.hash(str);
+ return Objects.hash(uri);
}
@Override
@@ -49,7 +49,7 @@
if (obj instanceof ElementId) {
final ElementId that = (ElementId) obj;
return this.getClass() == that.getClass() &&
- Objects.equals(this.str, that.str);
+ Objects.equals(this.uri, that.uri);
}
return false;
}