summaryrefslogtreecommitdiffstats
path: root/catalog-dao/src/main/java
diff options
context:
space:
mode:
authortalio <tali.orenbach@amdocs.com>2019-06-02 16:15:10 +0300
committerOren Kleks <orenkle@amdocs.com>2019-06-03 05:55:00 +0000
commitf4f6b1407a836266ce7d98f33ee899d8a2377d83 (patch)
tree189f7bd4b92badcbc690d7342538243db8ebe3f0 /catalog-dao/src/main/java
parent4f514b1c3f1c688345c750281097925ac22417ca (diff)
fix inputs declaration on complex type
Change-Id: I86172caf032f4936f98525830ed8aac2ea30567f Issue-ID: SDC-2347 Signed-off-by: talio <tali.orenbach@amdocs.com>
Diffstat (limited to 'catalog-dao/src/main/java')
-rw-r--r--catalog-dao/src/main/java/org/openecomp/sdc/be/dao/utils/CollectionUtils.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/utils/CollectionUtils.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/utils/CollectionUtils.java
index 7336859fd7..15bef3b23b 100644
--- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/utils/CollectionUtils.java
+++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/utils/CollectionUtils.java
@@ -20,13 +20,23 @@
package org.openecomp.sdc.be.dao.utils;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
import java.util.Map.Entry;
+import java.util.Set;
public final class CollectionUtils {
private CollectionUtils() {
}
+ public static <T> List<T> safeGetList(List<T> listToCheck) {
+ return org.apache.commons.collections.CollectionUtils.isNotEmpty(listToCheck) ? listToCheck : Collections.emptyList();
+ }
+
/**
* Add the content of the 'source' Set to the 'target' set and return the
* union set.