diff options
Diffstat (limited to 'aai-traversal/src')
-rw-r--r-- | aai-traversal/src/main/java/org/onap/aai/transforms/MapTraverser.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/aai-traversal/src/main/java/org/onap/aai/transforms/MapTraverser.java b/aai-traversal/src/main/java/org/onap/aai/transforms/MapTraverser.java index 9091998..36c453a 100644 --- a/aai-traversal/src/main/java/org/onap/aai/transforms/MapTraverser.java +++ b/aai-traversal/src/main/java/org/onap/aai/transforms/MapTraverser.java @@ -19,14 +19,13 @@ */ package org.onap.aai.transforms; - -import joptsimple.internal.Objects; - import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import org.apache.commons.collections.MapUtils; + public class MapTraverser { private Converter converter; @@ -37,8 +36,9 @@ public class MapTraverser { public Map<String, Object> convertKeys(Map<String, Object> map){ - Objects.ensureNotNull(map); - + if (MapUtils.isEmpty(map)) { + throw new NullPointerException("map cannot be null"); + } Map<String, Object> modifiedMap = new HashMap<String, Object>(); convertKeys(map, modifiedMap); |