From: ThamlurRaju Date: Fri, 17 Aug 2018 09:16:24 +0000 (+0530) Subject: fixing major Sonar Issue X-Git-Tag: 1.2.0~11 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F63%2F61063%2F1;p=vfc%2Fnfvo%2Fresmanagement.git 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 --- 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);