aboutsummaryrefslogtreecommitdiffstats
path: root/aai-traversal
diff options
context:
space:
mode:
Diffstat (limited to 'aai-traversal')
-rw-r--r--aai-traversal/pom.xml62
-rw-r--r--aai-traversal/src/main/java/org/onap/aai/transforms/MapTraverser.java5
2 files changed, 26 insertions, 41 deletions
diff --git a/aai-traversal/pom.xml b/aai-traversal/pom.xml
index d432d63..adedcdb 100644
--- a/aai-traversal/pom.xml
+++ b/aai-traversal/pom.xml
@@ -39,8 +39,6 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
- <jopt.simple.version>4.9</jopt.simple.version>
-
<!-- End of the jacoco plugin properties -->
<!-- Default docker registry that maven fabric plugin will try to pull
@@ -91,8 +89,8 @@
<schema.uri.base.path>/aai</schema.uri.base.path>
<!-- versions -->
- <janusgraph.version>1.0.0</janusgraph.version>
- <gremlin.version>3.7.1</gremlin.version>
+ <!-- <janusgraph.version>1.0.0</janusgraph.version>
+ <gremlin.version>3.7.1</gremlin.version> -->
<spring-cloud.version>2021.0.9</spring-cloud.version>
@@ -319,11 +317,6 @@
<artifactId>jaxb-runtime</artifactId>
</dependency>
<dependency>
- <groupId>net.sf.jopt-simple</groupId>
- <artifactId>jopt-simple</artifactId>
- <version>${jopt.simple.version}</version>
- </dependency>
- <dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
@@ -372,10 +365,7 @@
<groupId>org.janusgraph</groupId>
<artifactId>janusgraph-inmemory</artifactId>
<version>${janusgraph.version}</version>
- </dependency>
- <dependency>
- <groupId>com.github.jnr</groupId>
- <artifactId>jnr-ffi</artifactId>
+ <scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.tinkerpop</groupId>
@@ -405,10 +395,6 @@
<scope>compile</scope>
</dependency>
<dependency>
- <groupId>com.github.fge</groupId>
- <artifactId>json-patch</artifactId>
- </dependency>
- <dependency>
<groupId>org.javatuples</groupId>
<artifactId>javatuples</artifactId>
<scope>compile</scope>
@@ -428,27 +414,27 @@
<dependency>
<groupId>org.onap.aai.aai-common</groupId>
<artifactId>aai-core</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.eclipse.jetty</groupId>
- <artifactId>jetty-http</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.eclipse.jetty</groupId>
- <artifactId>jetty-server</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.springframework</groupId>
- <artifactId>spring-web</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.onap.aai</groupId>
- <artifactId>aai-logging</artifactId>
- </exclusion>
- <exclusion>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </exclusion>
+ <exclusions>
+ <exclusion>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-http</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-server</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-web</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.onap.aai</groupId>
+ <artifactId>aai-logging</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
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 24d5a83..77f2cd3 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
@@ -24,8 +24,6 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import joptsimple.internal.Objects;
-
public class MapTraverser {
private Converter converter;
@@ -36,7 +34,8 @@ public class MapTraverser {
public Map<String, Object> convertKeys(Map<String, Object> map) {
- Objects.ensureNotNull(map);
+ if (map == null)
+ throw new NullPointerException();
Map<String, Object> modifiedMap = new HashMap<>();
convertKeys(map, modifiedMap);