From c52a357a3f3e0c551fb57d3d0f25ded09cecabfe Mon Sep 17 00:00:00 2001 From: Amaresh Kumar Date: Fri, 31 Aug 2018 17:56:17 +0530 Subject: Fixed Sonar issue in SubDelivery.Java https://sonar.onap.org/project/issues?id=org.onap.dmaap.datarouter%3Aparent&open=AWHFaQpSEU5FCDfKtnas&resolved=false&severities=BLOCKER&types=BUG Issue-ID: DMAAP-682 Change-Id: Ic08968dedc5cab5a21ea4476be5653c41ab71b04 Signed-off-by: Amaresh Kumar --- .../org/onap/dmaap/datarouter/provisioning/beans/SubDelivery.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'datarouter-prov') diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubDelivery.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubDelivery.java index fe60f89f..98981a30 100644 --- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubDelivery.java +++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubDelivery.java @@ -26,6 +26,7 @@ package org.onap.dmaap.datarouter.provisioning.beans; import java.sql.ResultSet; import java.sql.SQLException; +import java.util.Objects; import org.json.JSONObject; @@ -118,4 +119,9 @@ public class SubDelivery implements JSONable { return false; return true; } + + @Override + public int hashCode() { + return Objects.hash(url, user, password, use100); + } } -- cgit 1.2.3-korg