diff options
Diffstat (limited to 'aai-core')
-rw-r--r-- | aai-core/src/main/java/org/onap/aai/introspection/Introspector.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/introspection/Introspector.java b/aai-core/src/main/java/org/onap/aai/introspection/Introspector.java index 9e599a64..11e6233f 100644 --- a/aai-core/src/main/java/org/onap/aai/introspection/Introspector.java +++ b/aai-core/src/main/java/org/onap/aai/introspection/Introspector.java @@ -177,7 +177,7 @@ public abstract class Introspector implements Cloneable { if (obj != null) { try { - if (!obj.getClass().getName().equals(nameClass.getName())) { + if (!nameClass.isAssignableFrom(obj.getClass())) { if (nameClass.isPrimitive()) { nameClass = ClassUtils.primitiveToWrapper(nameClass); result = nameClass.getConstructor(String.class).newInstance(obj.toString()); @@ -349,7 +349,7 @@ public abstract class Introspector implements Cloneable { /** * This will returned the generic parameterized type of the underlying * object if it exists - * + * * @param name * @return the generic type of the java class of the underlying object */ @@ -414,7 +414,7 @@ public abstract class Introspector implements Cloneable { /** * Is this type not a Java String or primitive - * + * * @param name * @return */ |