From 18797ce5f8c608bc392dfc272374c1dbe7da6863 Mon Sep 17 00:00:00 2001 From: Amaresh Kumar Date: Fri, 31 Aug 2018 17:51:27 +0530 Subject: Sonar fix for SubLinks.java https://sonar.onap.org/project/issues?id=org.onap.dmaap.datarouter%3Aparent&open=AWHFaQpEEU5FCDfKtnaF&resolved=false&severities=BLOCKER&types=BUG Issue-ID: DMAAP-681 Change-Id: Ie55fdabef3e7fa34ae6e93be82d7a1ef0a4a710c Signed-off-by: Amaresh Kumar --- .../java/org/onap/dmaap/datarouter/provisioning/beans/SubLinks.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubLinks.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubLinks.java index f07a76e2..d3f82e6e 100644 --- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubLinks.java +++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubLinks.java @@ -25,6 +25,7 @@ package org.onap.dmaap.datarouter.provisioning.beans; import java.io.InvalidObjectException; +import java.util.Objects; import org.json.JSONObject; @@ -102,4 +103,9 @@ public class SubLinks implements JSONable { return false; return true; } + + @Override + public int hashCode() { + return Objects.hash(self, feed, log); + } } -- cgit 1.2.3-korg