summaryrefslogtreecommitdiffstats
path: root/openecomp-be
diff options
context:
space:
mode:
authortalig <talig@amdocs.com>2018-04-30 14:03:09 +0300
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-04-30 12:19:08 +0000
commitdb69b87869091b774d6d87f3b6a9155d34d26b12 (patch)
treefd8050998d63f1a44cf6760fe078f89dd2bda2ad /openecomp-be
parent743f4f1efb45124548ed3663ab6bbaa88d029dd2 (diff)
Fix static analysis violations
Change-Id: I1d2255ae6d060b6c9024443aee68d865fc824158 Issue-ID: SDC-1234 Signed-off-by: talig <talig@amdocs.com>
Diffstat (limited to 'openecomp-be')
-rw-r--r--openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-core/src/main/java/org/openecomp/sdc/healing/impl/HealingManagerImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-core/src/main/java/org/openecomp/sdc/healing/impl/HealingManagerImpl.java b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-core/src/main/java/org/openecomp/sdc/healing/impl/HealingManagerImpl.java
index 71d4ca5386..eb3fd91bcf 100644
--- a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-core/src/main/java/org/openecomp/sdc/healing/impl/HealingManagerImpl.java
+++ b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-core/src/main/java/org/openecomp/sdc/healing/impl/HealingManagerImpl.java
@@ -232,7 +232,7 @@ public class HealingManagerImpl implements HealingManager {
private List<Healer> getHealersToRun(Collection<String> healersClassNames, String itemId,
Version version, List<String> failureMessages) {
return healersClassNames == null
- ? Collections.EMPTY_LIST
+ ? Collections.emptyList()
: healersClassNames.stream()
.map(healerClassName -> getHealerInstance(healerClassName, failureMessages))
.filter(Optional::isPresent)
@@ -255,7 +255,7 @@ public class HealingManagerImpl implements HealingManager {
Map healingConfig = FileUtils
.readViaInputStream(HEALERS_BY_ENTITY_TYPE_FILE,
stream -> JsonUtil.json2Object(stream, Map.class));
- return (Map<String, Collection<String>>) healingConfig.getOrDefault(itemType.name(), Collections.EMPTY_MAP);
+ return (Map<String, Collection<String>>) healingConfig.getOrDefault(itemType.name(), Collections.emptyMap());
}
private String getUser() {