diff options
Diffstat (limited to 'POLICY-SDK-APP/src/main/java')
-rw-r--r-- | POLICY-SDK-APP/src/main/java/org/onap/policy/admin/RESTfulPAPEngine.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/POLICY-SDK-APP/src/main/java/org/onap/policy/admin/RESTfulPAPEngine.java b/POLICY-SDK-APP/src/main/java/org/onap/policy/admin/RESTfulPAPEngine.java index e48b0cb19..234d28f10 100644 --- a/POLICY-SDK-APP/src/main/java/org/onap/policy/admin/RESTfulPAPEngine.java +++ b/POLICY-SDK-APP/src/main/java/org/onap/policy/admin/RESTfulPAPEngine.java @@ -467,12 +467,10 @@ public class RESTfulPAPEngine extends StdPDPItemSetChangeNotifier implements PAP final CollectionType javaType = mapper.getTypeFactory().constructCollectionType(collectionTypeClass, responseContentClass); - Object objectFromJSON = mapper.readValue(json, javaType); - return objectFromJSON; + return (Object)mapper.readValue(json, javaType); } else { // single value object expected - Object objectFromJSON = mapper.readValue(json, responseContentClass); - return objectFromJSON; + return (Object)mapper.readValue(json, responseContentClass); } } |