From 0db9b43495c271dc2ee18badc3c896443bc07b3f Mon Sep 17 00:00:00 2001 From: ThamlurRaju Date: Fri, 17 Aug 2018 14:46:24 +0530 Subject: fixing major Sonar Issue Replace the type specification in this constructor call with the diamond operator Sonar Link: https://sonar.onap.org/project/issues?assignees=ThamlurRaju&id=org.onap.vfc.nfvo.resmanagement%3Avfc-nfvo-resmanagement&open=AV8lpfC2-08if2a6pmB4&resolved=false&severities=MAJOR&types=CODE_SMELL Location: src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/LocationRoa.java Line No- 185 Change-Id: I0eb22107fa281b6117fceeaa87fba12a27091fcb Issue-ID: VFC-1035 Signed-off-by: ThamlurRaju --- .../java/org/onap/vfc/nfvo/resmanagement/service/rest/LocationRoa.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ResmanagementService/service/src') diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/LocationRoa.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/LocationRoa.java index f73726f..9dcbd94 100644 --- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/LocationRoa.java +++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/LocationRoa.java @@ -182,7 +182,7 @@ public class LocationRoa { @QueryParam(ParamConstant.PARAM_LOCATION) String locations) throws ServiceException { LOGGER.info("LocationRoa::getLocation locations:{}", locations); Map condition = new HashMap<>(); - List loca = new ArrayList(); + List loca = new ArrayList<>(); condition.put(ParamConstant.PARAM_LOCATION, locations); loca = location.get(condition); LOGGER.info("LocationRoa::getLocation loca:{}", loca); -- cgit 1.2.3-korg