From b85e7379b54980280126accad9767a9f1cb75704 Mon Sep 17 00:00:00 2001 From: ojasdubey Date: Wed, 27 Dec 2017 19:47:44 +0530 Subject: Fix Sonar violations - AgglomerateConfiguration 1. Fixed major sonar violations configuration management core - AgglomerateConfiguration Change-Id: I1f79df3a1d256aeb45b82d344c507d40f6b83026 Issue-ID: SDC-343 Signed-off-by: ojasdubey --- .../java/org/openecomp/config/impl/AgglomerateConfiguration.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/openecomp-common-configuration-management/openecomp-configuration-management-core') diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java index d50948c201..9556b480c6 100644 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java +++ b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java @@ -21,10 +21,11 @@ public class AgglomerateConfiguration extends DatabaseConfiguration { * @return the property value */ public Object getPropertyValue(String key) { - Object objToReturn = null; + Object objToReturn; objToReturn = store.get(key); if (objToReturn == null && !store.containsKey(key)) { - store.put(key, objToReturn = super.getProperty(key)); + objToReturn = super.getProperty(key); + store.put(key, objToReturn); } return objToReturn; } -- cgit 1.2.3-korg