Fix static analysis violations 53/45253/2
authortalig <talig@amdocs.com>
Mon, 30 Apr 2018 11:03:09 +0000 (14:03 +0300)
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>
Mon, 30 Apr 2018 12:19:08 +0000 (12:19 +0000)
Change-Id: I1d2255ae6d060b6c9024443aee68d865fc824158
Issue-ID: SDC-1234
Signed-off-by: talig <talig@amdocs.com>
openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-core/src/main/java/org/openecomp/sdc/healing/impl/HealingManagerImpl.java

index 71d4ca5..eb3fd91 100644 (file)
@@ -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() {