diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2017-10-17 08:53:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-10-17 08:53:54 +0000 |
commit | 913ca71caf1fee02247b4ddfa589d551f1dda05a (patch) | |
tree | 540ac2cbbf0032e607abdf4377d16afdc77a2e8c /adapters/mso-adapters-rest-interface/src | |
parent | 45a51414d1e005f6832570eb80c29d7a2023c355 (diff) | |
parent | 2510e2a62bf6de276db54bebd01de1a55b42ba6e (diff) |
Merge "Remove the unused variables"
Diffstat (limited to 'adapters/mso-adapters-rest-interface/src')
2 files changed, 2 insertions, 2 deletions
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<String,String> vfModuleOutputs = new HashMap<String, String>(); + private Map<String,String> 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); |