<parent>
<groupId>org.onap.aai.traversal</groupId>
<artifactId>traversal</artifactId>
- <version>1.14.7-SNAPSHOT</version>
+ <version>1.15.0-SNAPSHOT</version>
</parent>
<groupId>org.onap.aai.traversal</groupId>
<artifactId>aai-traversal</artifactId>
<version>2.1</version>
</dependency>
<dependency>
- <groupId>javax.xml.bind</groupId>
- <artifactId>jaxb-api</artifactId>
+ <groupId>jakarta.xml.bind</groupId>
+ <artifactId>jakarta.xml.bind-api</artifactId>
</dependency>
<dependency>
- <groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
- </dependency>
- <dependency>
- <groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-core</artifactId>
+ <groupId>org.glassfish.jaxb</groupId>
+ <artifactId>jaxb-runtime</artifactId>
</dependency>
<dependency>
<groupId>net.sf.jopt-simple</groupId>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
- <version>1.18.30</version>
+ <version>1.18.34</version>
<scope>provided</scope>
</dependency>
</dependencies>
try {
Optional<Vertex> result = dbMethHelper.searchVertexByIdentityMap(modTopNodeType,
startNodeFilterArrayOfHashes.get(i));
- if (!result.isPresent()) {
+ if (result.isEmpty()) {
throw new AAIException("AAI_6114",
"No Node of type " + modTopNodeType + " found for properties");
}
Optional<Vertex> result =
dbMethHelper.searchVertexByIdentityMap(topNodeTypeVal, startNodeFilterHash);
- if (!result.isPresent()) {
+ if (result.isEmpty()) {
throw new AAIException("AAI_6114",
"No Node of type " + topNodeTypeVal + " found for properties");
}
}
Optional<Vertex> result =
dbMethHelper.locateUniqueVertex(widgModNodeType, startNodeFilterHash);
- if (!result.isPresent()) {
+ if (result.isEmpty()) {
throw new AAIException("AAI_6114",
"No Node of type " + topNType + " found for properties");
}
// Locate the starting node that we'll use to start looking for instance data
Optional<Vertex> result =
dbMethHelper.searchVertexByIdentityMap(topNType, startNodeFilterHash);
- if (!result.isPresent()) {
+ if (result.isEmpty()) {
throw new AAIException("AAI_6114",
"No Node of type " + topNType + " found for properties");
}
propHash.put(targetProp, valFromInstance);
Optional<Vertex> result = dbMethHelper.locateUniqueVertex(targetNodeType, propHash);
- if (!result.isPresent()) {
+ if (result.isEmpty()) {
// If it can't find the lookup node, don't fail, just log that it couldn't be found
// ---
logger.debug("WARNING - Could not find lookup node that corresponds to nodeType ["
protected void addStartNode(GraphTraversal<Vertex, Vertex> g, CustomQueryTestDTO content) {
Optional<LinkedHashMap<String, String>> startNodeVertex = content.getVerticesDtos().stream()
.filter(map -> map.containsKey("start-node")).findFirst();
- if (!startNodeVertex.isPresent()) {
+ if (startNodeVertex.isEmpty()) {
throw new IllegalArgumentException("start-node was not specified");
}
startNodeVertex.get().forEach((k, v) -> {
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
-import java.nio.file.Paths;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
String filepath =
storedQueriesLocation + AAIConstants.AAI_FILESEP + "stored-queries.json";
logger.info("Using the Local stored queries");
- Path path = Paths.get(filepath);
+ Path path = Path.of(filepath);
String customQueryConfigJson = new String(Files.readAllBytes(path));
queryConfig = new GetCustomQueryConfig(customQueryConfigJson);
protected void onChange(File file) {
try {
String filepath = storedQueriesLocation;
- Path path = Paths.get(filepath);
+ Path path = Path.of(filepath);
String customQueryConfigJson = new String(Files.readAllBytes(path));
queryConfig = new GetCustomQueryConfig(customQueryConfigJson);
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
-import java.nio.file.Paths;
+import java.nio.file.Path;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
String basicAuthFile = getBasicAuthFilePath();
- try (Stream<String> stream = Files.lines(Paths.get(basicAuthFile))) {
+ try (Stream<String> stream = Files.lines(Path.of(basicAuthFile))) {
stream.filter(line -> !line.startsWith("#")).forEach(str -> {
byte[] bytes = null;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
-import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
assert files != null;
for (File file : files) {
try {
- Path path = Paths.get(widgetPath + AAIConstants.AAI_FILESEP + file.getName());
+ Path path = Path.of(widgetPath + AAIConstants.AAI_FILESEP + file.getName());
String widgetPayload = new String(Files.readAllBytes(path));
String modelInvariantId = getJsonValue(widgetPayload, "model-invariant-id");
String widgetUri =
assert files != null;
for (File file : files) {
try {
- Path path = Paths.get(namedQueryPath + AAIConstants.AAI_FILESEP + file.getName());
+ Path path = Path.of(namedQueryPath + AAIConstants.AAI_FILESEP + file.getName());
String namedQueryPayload = new String(Files.readAllBytes(path));
String namedQueryUuid = getJsonValue(namedQueryPayload, "named-query-uuid");
String namedQueryUri =
<parent>
<groupId>org.onap.aai.aai-common</groupId>
<artifactId>aai-parent</artifactId>
- <version>1.14.7</version>
+ <version>1.15.0-SNAPSHOT</version>
</parent>
<groupId>org.onap.aai.traversal</groupId>
<artifactId>traversal</artifactId>
- <version>1.14.7-SNAPSHOT</version>
+ <version>1.15.0-SNAPSHOT</version>
<name>aai-traversal</name>
<packaging>pom</packaging>
<modules>
<module>aai-traversal</module>
</modules>
<properties>
+ <maven.compiler.release>11</maven.compiler.release>
<!--
Nexus Proxy Properties and Snapshot Locations
Ideally this can be overwritten at runtime per internal environment specific values at runtime
-->
- <aai.common.version>1.14.7</aai.common.version>
+ <aai.common.version>1.15.0-SNAPSHOT</aai.common.version>
<nexusproxy>https://nexus.onap.org</nexusproxy>
<site.path>/content/sites/site/org/onap/aai/traversal/${project.artifactId}/${project.version}</site.path>
<release.path>/content/repositories/releases/</release.path>
# because they are used in Jenkins, whose plug-in doesn't support
major_version=1
-minor_version=14
-patch_version=7
+minor_version=15
+patch_version=0
base_version=${major_version}.${minor_version}.${patch_version}