aboutsummaryrefslogtreecommitdiffstats
path: root/POLICY-SDK-APP
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-01-11 18:50:44 +0000
committerGerrit Code Review <gerrit@onap.org>2018-01-11 18:50:44 +0000
commitf0d9cfb56a032242527a9837fd613fe64fbfee42 (patch)
tree4d673bb652986e4337fcbed4ca67bcd12e1f9a65 /POLICY-SDK-APP
parent0213ffe513b4d1f1103e23bebcf3a6f64c408cd5 (diff)
parentb48dd48911af3d07fce02414137ed39962ed057d (diff)
Merge "Fixed as code optimization"
Diffstat (limited to 'POLICY-SDK-APP')
-rw-r--r--POLICY-SDK-APP/src/main/java/org/onap/policy/admin/RESTfulPAPEngine.java6
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);
}
}