commit | c4191edad7be724c4b8dcede61f6a0f5e618ae66 | [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 | f296602180ab6dbf4e24d479afbd1eef9ee4abdc | |
parent | 3e269df520cf11d625d12f6eaf8e99391e953c37 [diff] [blame] |
Sonar suggestion - possible null pointer dereferences in equals() methods Change-Id: I021c202df99098e5ecf05949954c4c9355d944db
diff --git a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/pwaas/DefaultL2Tunnel.java b/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/pwaas/DefaultL2Tunnel.java index bddc191..60de5c8 100644 --- a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/pwaas/DefaultL2Tunnel.java +++ b/apps/segmentrouting/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 &&