diff options
author | James Forsyth <jf2512@att.com> | 2018-02-01 17:30:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-02-01 17:30:08 +0000 |
commit | f9b6b7961bac66288b6241ce7c2fbfed24fb30b9 (patch) | |
tree | fb41e8dfaef8ae2e2c760ea34c8f07e765c1f63b /aai-core/src/main | |
parent | 6fa93a71a0e219853d99097f121a4318082e911f (diff) | |
parent | b0df7c65aaf4fc397ddacae866edd2e9c3e6b54f (diff) |
Merge "Fixes in JSONStrategy"
Diffstat (limited to 'aai-core/src/main')
-rw-r--r-- | aai-core/src/main/java/org/onap/aai/introspection/JSONStrategy.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/introspection/JSONStrategy.java b/aai-core/src/main/java/org/onap/aai/introspection/JSONStrategy.java index db8a7d06..d36e39b7 100644 --- a/aai-core/src/main/java/org/onap/aai/introspection/JSONStrategy.java +++ b/aai-core/src/main/java/org/onap/aai/introspection/JSONStrategy.java @@ -21,6 +21,8 @@ */ package org.onap.aai.introspection; +import com.att.eelf.configuration.EELFLogger; +import com.att.eelf.configuration.EELFManager; import org.json.simple.JSONObject; import org.onap.aai.schema.enums.ObjectMetadata; import org.onap.aai.schema.enums.PropertyMetadata; @@ -32,6 +34,7 @@ import java.util.Set; import java.util.UUID; public class JSONStrategy extends Introspector { + private static final EELFLogger LOGGER = EELFManager.getInstance().getLogger(JSONStrategy.class); private JSONObject json = null; private String namedType = ""; @@ -158,6 +161,7 @@ public class JSONStrategy extends Introspector { try { return this.getClass(name).newInstance(); } catch (InstantiationException | IllegalAccessException e) { + LOGGER.error(e.getMessage(),e); return null; } } @@ -167,6 +171,7 @@ public class JSONStrategy extends Introspector { try { return this.getGenericTypeClass(name).newInstance(); } catch (InstantiationException | IllegalAccessException e) { + LOGGER.error(e.getMessage(),e); return null; } } |