From b0df7c65aaf4fc397ddacae866edd2e9c3e6b54f Mon Sep 17 00:00:00 2001 From: burdziak Date: Wed, 31 Jan 2018 11:07:53 +0100 Subject: [PATCH] Fixes in JSONStrategy Change-Id: If961ca134c14239608331ca3a0251e8d0597a42d Issue-ID: AAI-711 Signed-off-by: burdziak --- aai-core/src/main/java/org/onap/aai/introspection/JSONStrategy.java | 5 +++++ 1 file changed, 5 insertions(+) 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; } } -- 2.16.6