commit | eae2b999e89a8398dfceccaa6679a88dade08bb3 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Fri Dec 15 15:14:06 2017 -0800 |
committer | Yuta HIGUCHI <y-higuchi@opennetworking.org> | Mon Dec 18 17:36:30 2017 +0000 |
tree | cd773b6c343ccf70889e253ebe73e2bcd0678451 | |
parent | 50375616b3a8147cfe8e6df346f7c09a5af8916b [diff] [blame] |
Sonar suggestion - possible null pointer dereferences in equals() methods Change-Id: I021c202df99098e5ecf05949954c4c9355d944db
diff --git a/src/main/java/org/onosproject/segmentrouting/pwaas/DefaultL2Tunnel.java b/src/main/java/org/onosproject/segmentrouting/pwaas/DefaultL2Tunnel.java index bddc191..60de5c8 100644 --- a/src/main/java/org/onosproject/segmentrouting/pwaas/DefaultL2Tunnel.java +++ b/src/main/java/org/onosproject/segmentrouting/pwaas/DefaultL2Tunnel.java
@@ -186,7 +186,7 @@ @Override public int hashCode() { - return Objects.hash(this.tunnelId, this.pwLabel); + return Objects.hash(this.tunnelId, this.pwMode, this.sdTag, this.pwLabel, this.interCoLabel); } @Override @@ -195,10 +195,6 @@ return true; } - if (getClass() != o.getClass()) { - return false; - } - if (o instanceof DefaultL2Tunnel) { DefaultL2Tunnel that = (DefaultL2Tunnel) o; return this.tunnelId == that.tunnelId &&