Enhancements for the aai-common library
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / introspection / JSONStrategy.java
index e628d5a..55580dc 100644 (file)
@@ -26,7 +26,6 @@ import java.util.Map;
 import java.util.Set;
 import java.util.UUID;
 
-import org.json.simple.JSONArray;
 import org.json.simple.JSONObject;
 import org.onap.aai.schema.enums.ObjectMetadata;
 import org.onap.aai.schema.enums.PropertyMetadata;
@@ -150,7 +149,7 @@ public class JSONStrategy extends Introspector {
         Object resultObject = null;
         Class<?> resultClass = null;
         resultObject = this.getValue(name);
-        if (resultObject instanceof JSONArray) {
+        if (resultObject.getClass().getName().equals("org.json.simple.JSONArray")) {
             resultClass = ((List) resultObject).get(0).getClass();
         }
 
@@ -274,10 +273,10 @@ public class JSONStrategy extends Introspector {
     /*
      * @Override
      * public String findEdgeName(String parent, String child) {
-     *
+     * 
      * // Always has for now
      * return "has";
-     *
+     * 
      * }
      */