From af61f52277558744306b42a4bc2e01549e654ccb Mon Sep 17 00:00:00 2001 From: Jimmy Forsyth Date: Fri, 22 Nov 2019 10:22:08 -0500 Subject: Change to use aai-parent Issue-ID: AAI-2724 Signed-off-by: Jimmy Forsyth Change-Id: Iec7303c7056aaa90302150983c4eb712ba617b09 --- .../src/main/java/org/onap/aai/transforms/MapTraverser.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'aai-traversal/src/main') 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 convertKeys(Map map){ - Objects.ensureNotNull(map); - + if (MapUtils.isEmpty(map)) { + throw new NullPointerException("map cannot be null"); + } Map modifiedMap = new HashMap(); convertKeys(map, modifiedMap); -- cgit 1.2.3-korg