From db69b87869091b774d6d87f3b6a9155d34d26b12 Mon Sep 17 00:00:00 2001 From: talig Date: Mon, 30 Apr 2018 14:03:09 +0300 Subject: Fix static analysis violations Change-Id: I1d2255ae6d060b6c9024443aee68d865fc824158 Issue-ID: SDC-1234 Signed-off-by: talig --- .../main/java/org/openecomp/sdc/healing/impl/HealingManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-core') 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 getHealersToRun(Collection healersClassNames, String itemId, Version version, List 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>) healingConfig.getOrDefault(itemType.name(), Collections.EMPTY_MAP); + return (Map>) healingConfig.getOrDefault(itemType.name(), Collections.emptyMap()); } private String getUser() { -- cgit 1.2.3-korg