From 2510e2a62bf6de276db54bebd01de1a55b42ba6e Mon Sep 17 00:00:00 2001 From: rama-huawei Date: Tue, 17 Oct 2017 11:46:33 +0530 Subject: Remove the unused variables Issue-id: SO-223 Change-Id: I5f4d3f9ef78b68c890a32d3f6afc2a86f2064a6b Signed-off-by: rama-huawei --- .../java/org/openecomp/mso/adapters/vnfrest/DeleteVfModuleResponse.java | 2 +- .../main/java/org/openecomp/mso/adapters/vnfrest/VfResponseCommon.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'adapters/mso-adapters-rest-interface/src/main/java/org') diff --git a/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/vnfrest/DeleteVfModuleResponse.java b/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/vnfrest/DeleteVfModuleResponse.java index aacb4d64f0..c5b8bb7d59 100644 --- a/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/vnfrest/DeleteVfModuleResponse.java +++ b/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/vnfrest/DeleteVfModuleResponse.java @@ -35,7 +35,7 @@ public class DeleteVfModuleResponse extends VfResponseCommon { private String vnfId; private String vfModuleId; private Boolean vfModuleDeleted; - private Map vfModuleOutputs = new HashMap(); + private Map vfModuleOutputs = new HashMap<>(); public DeleteVfModuleResponse() { super(); } diff --git a/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/vnfrest/VfResponseCommon.java b/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/vnfrest/VfResponseCommon.java index 4a902bdd83..76cbda1ef4 100644 --- a/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/vnfrest/VfResponseCommon.java +++ b/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/vnfrest/VfResponseCommon.java @@ -58,7 +58,7 @@ public abstract class VfResponseCommon { public String toJsonString() { try { - String jsonString = null; + String jsonString; ObjectMapper mapper = new ObjectMapper(); mapper.enable(SerializationConfig.Feature.WRAP_ROOT_VALUE); jsonString = mapper.writeValueAsString(this); -- cgit 1.2.3-korg