From 29fe4a75b506afefe525ffe5a3e4a6e57344f56c Mon Sep 17 00:00:00 2001 From: rama-huawei Date: Mon, 25 Sep 2017 17:41:23 +0530 Subject: Replaced with Diamond symbol Issue-Id:SO-118 Change-Id: I6a1542d53c9021e315331a1643519c25500df20a Signed-off-by: rama-huawei --- .../mso/adapters/vnf/VolumeAdapterRest.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'adapters/mso-vnf-adapter/src/main/java/org/openecomp') diff --git a/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/VolumeAdapterRest.java b/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/VolumeAdapterRest.java index d2f1c86fda..87b48fc68a 100644 --- a/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/VolumeAdapterRest.java +++ b/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/VolumeAdapterRest.java @@ -136,9 +136,9 @@ public class VolumeAdapterRest { LOGGER.debug ("CreateVFModule VolumesTask start"); try { // Synchronous Web Service Outputs - Holder stackId = new Holder(); - Holder> outputs = new Holder>(); - Holder vnfRollback = new Holder(); + Holder stackId = new Holder<>(); + Holder> outputs = new Holder<>(); + Holder vnfRollback = new Holder<>(); String completeVnfVfModuleType = req.getVnfType() + "::" + req.getVfModuleType(); LOGGER.debug("in createVfModuleVolumes - completeVnfVfModuleType=" + completeVnfVfModuleType); @@ -462,9 +462,9 @@ public class VolumeAdapterRest { LOGGER.debug("UpdateVNFVolumesTask start"); try { @SuppressWarnings("unused") - Holder stackId = new Holder (); - Holder> outputs = new Holder> (); - Holder vnfRollback = new Holder (); + Holder stackId = new Holder<> (); + Holder> outputs = new Holder<> (); + Holder vnfRollback = new Holder<> (); String completeVnfVfModuleType = req.getVnfType() + "::" + req.getVfModuleType(); LOGGER.debug("in updateVfModuleVolume - completeVnfVfModuleType=" + completeVnfVfModuleType); @@ -535,10 +535,10 @@ public class VolumeAdapterRest { try { int respStatus = HttpStatus.SC_OK; QueryVolumeGroupResponse qryResp = new QueryVolumeGroupResponse(aaiVolumeGroupId, volumeGroupStackId, null, null); - Holder vnfExists = new Holder(); - Holder vfModuleId = new Holder(); - Holder status = new Holder(); - Holder> outputs = new Holder>(); + Holder vnfExists = new Holder<>(); + Holder vfModuleId = new Holder<>(); + Holder status = new Holder<>(); + Holder> outputs = new Holder<>(); if (cloudSiteId != null && cloudSiteId.equals(TESTING_KEYWORD)) { if (tenantId != null && tenantId.equals(TESTING_KEYWORD)) { throw new VnfException("testing."); @@ -575,7 +575,7 @@ public class VolumeAdapterRest { } } public static Map testMap() { - Map m = new HashMap(); + Map m = new HashMap<>(); m.put("mickey", "7"); m.put("clyde", "10"); m.put("wayne", "99"); -- cgit 1.2.3-korg