From cf65fe273c30292cacdd23b90bc7851b4f9edb3f Mon Sep 17 00:00:00 2001 From: niamhcore Date: Thu, 9 Sep 2021 13:16:41 +0100 Subject: Fix Sonar Qube Violations Issue-ID: CPS-475 Signed-off-by: niamhcore Change-Id: Ib8a763545e04c32c493994772f355fd3b4616098 --- .../java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java index 871d8806bf..9ac5fd590f 100755 --- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java +++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java @@ -248,7 +248,7 @@ public class NetworkCmProxyDataServiceImpl implements NetworkCmProxyDataService private Map getCmHandlePropertiesAsMap(final Collection cmHandlePropertiesList) { if (cmHandlePropertiesList == null || cmHandlePropertiesList.isEmpty()) { - return null; + return Collections.emptyMap(); } final Map cmHandlePropertiesMap = new LinkedHashMap<>(); for (final var node: cmHandlePropertiesList) { -- cgit 1.2.3-korg