diff options
author | ojasdubey <ojas.dubey@amdocs.com> | 2017-12-27 19:47:44 +0530 |
---|---|---|
committer | Vitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com> | 2017-12-27 15:40:06 +0000 |
commit | b85e7379b54980280126accad9767a9f1cb75704 (patch) | |
tree | e80033d5d8897f11dad975143096a89adb2989b5 /common/openecomp-common-configuration-management | |
parent | 5dffd0bb65ff1053055c2697e7cd198551c261cb (diff) |
Fix Sonar violations - AgglomerateConfiguration
1. Fixed major sonar violations configuration management core
- AgglomerateConfiguration
Change-Id: I1f79df3a1d256aeb45b82d344c507d40f6b83026
Issue-ID: SDC-343
Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
Diffstat (limited to 'common/openecomp-common-configuration-management')
-rw-r--r-- | common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |