summaryrefslogtreecommitdiffstats
path: root/aai-schema-abstraction
diff options
context:
space:
mode:
authorWilliam Reehil <william.reehil@att.com>2022-10-14 13:14:20 +0000
committerGerrit Code Review <gerrit@onap.org>2022-10-14 13:14:20 +0000
commit1101affcc1e3e0d99e66d6ff84f5573b3bc77b26 (patch)
tree4a9d9f968236b5734b197b8ff6835120ac9f4757 /aai-schema-abstraction
parent67acb223c78e804bdd3a4f0b1d51ed4c87e070a1 (diff)
parentd629b626036a1ef1bc37e2b9aa5b5d2fcad1be66 (diff)
Merge "Remove the apache commons-lang dependency in aai-common"
Diffstat (limited to 'aai-schema-abstraction')
-rw-r--r--aai-schema-abstraction/src/main/java/org/onap/aai/schemaif/json/JsonSchemaProvider.java5
-rw-r--r--aai-schema-abstraction/src/main/java/org/onap/aai/schemaif/oxm/OxmEdgeRulesLoader.java7
2 files changed, 8 insertions, 4 deletions
diff --git a/aai-schema-abstraction/src/main/java/org/onap/aai/schemaif/json/JsonSchemaProvider.java b/aai-schema-abstraction/src/main/java/org/onap/aai/schemaif/json/JsonSchemaProvider.java
index e7ee4b47..78ae6a6d 100644
--- a/aai-schema-abstraction/src/main/java/org/onap/aai/schemaif/json/JsonSchemaProvider.java
+++ b/aai-schema-abstraction/src/main/java/org/onap/aai/schemaif/json/JsonSchemaProvider.java
@@ -28,11 +28,11 @@ import java.io.StringWriter;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Map;
-import java.util.Scanner;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
+
import org.onap.aai.cl.api.Logger;
import org.onap.aai.cl.eelf.LoggerFactory;
import org.onap.aai.schemaif.SchemaProvider;
@@ -52,7 +52,8 @@ import org.springframework.web.client.RestTemplate;
public class JsonSchemaProvider implements SchemaProvider {
- Logger logger = LoggerFactory.getInstance().getLogger(JsonSchemaProvider.class.getName());
+ // Logger logger = LoggerFactory.getInstance().getLogger(JsonSchemaProvider.class.getName());
+ Logger logger = LoggerFactory.getInstance().getLogger(SchemaProvider.class);
private JsonSchemaProviderConfig config;
private Map<String,SchemaInstance> schemaCache = new ConcurrentHashMap<>();
diff --git a/aai-schema-abstraction/src/main/java/org/onap/aai/schemaif/oxm/OxmEdgeRulesLoader.java b/aai-schema-abstraction/src/main/java/org/onap/aai/schemaif/oxm/OxmEdgeRulesLoader.java
index 39e7039f..93508fc5 100644
--- a/aai-schema-abstraction/src/main/java/org/onap/aai/schemaif/oxm/OxmEdgeRulesLoader.java
+++ b/aai-schema-abstraction/src/main/java/org/onap/aai/schemaif/oxm/OxmEdgeRulesLoader.java
@@ -20,7 +20,6 @@
*/
package org.onap.aai.schemaif.oxm;
-import com.google.common.collect.Multimap;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
@@ -32,7 +31,9 @@ import java.util.function.Function;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
+
import org.apache.commons.io.IOUtils;
+import org.onap.aai.cl.api.Logger;
import org.onap.aai.cl.eelf.LoggerFactory;
import org.onap.aai.edges.EdgeIngestor;
import org.onap.aai.edges.EdgeRule;
@@ -44,6 +45,8 @@ import org.onap.aai.setup.Translator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
+import com.google.common.collect.Multimap;
+
@Component
public class OxmEdgeRulesLoader {
@@ -60,7 +63,7 @@ public class OxmEdgeRulesLoader {
final static Pattern propsFilePattern = Pattern.compile(propsPrefix + "(.*)" + propsSuffix);
final static Pattern propsVersionPattern = Pattern.compile("(?i)v\\d*");
- private static org.onap.aai.cl.api.Logger logger =
+ private static Logger logger =
LoggerFactory.getInstance().getLogger(OxmEdgeRulesLoader.class.getName());
private OxmEdgeRulesLoader() {}