diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2018-01-11 18:50:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-01-11 18:50:44 +0000 |
commit | f0d9cfb56a032242527a9837fd613fe64fbfee42 (patch) | |
tree | 4d673bb652986e4337fcbed4ca67bcd12e1f9a65 | |
parent | 0213ffe513b4d1f1103e23bebcf3a6f64c408cd5 (diff) | |
parent | b48dd48911af3d07fce02414137ed39962ed057d (diff) |
Merge "Fixed as code optimization"
-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); } } |