From b48dd48911af3d07fce02414137ed39962ed057d Mon Sep 17 00:00:00 2001 From: SRINIVAS V Date: Mon, 8 Jan 2018 21:18:40 +0530 Subject: Fixed as code optimization *no need to create seperate object, so optimized Change-Id: I245d7fd26c0fabb26de6e9eb7c8bedf405d9d602 Issue-ID: POLICY-336 Signed-off-by: SRINIVAS V --- .../src/main/java/org/onap/policy/admin/RESTfulPAPEngine.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'POLICY-SDK-APP') 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); } } -- cgit 1.2.3-korg