aboutsummaryrefslogtreecommitdiffstats
path: root/aai-traversal/src/main
diff options
context:
space:
mode:
authorJimmy Forsyth <jf2512@att.com>2019-11-22 10:22:08 -0500
committerJimmy Forsyth <jf2512@att.com>2019-11-25 18:23:10 -0500
commitaf61f52277558744306b42a4bc2e01549e654ccb (patch)
tree63dbfcbc7d34bce94d33784585d4a8d7587624c7 /aai-traversal/src/main
parent03842e7455feca17efe26025b951cbb7c6752622 (diff)
Change to use aai-parent
Issue-ID: AAI-2724 Signed-off-by: Jimmy Forsyth <jf2512@att.com> Change-Id: Iec7303c7056aaa90302150983c4eb712ba617b09
Diffstat (limited to 'aai-traversal/src/main')
-rw-r--r--aai-traversal/src/main/java/org/onap/aai/transforms/MapTraverser.java10
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);