From: ThamlurRaju Date: Fri, 17 Aug 2018 08:57:35 +0000 (+0530) Subject: fixing major Sonar Issue X-Git-Tag: 1.2.0~12 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=488a6f7ffcb94c3e9fa578bf59c1623fb304b31a;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=AV8lpfDZ-08if2a6pmCN&resolved=false&severities=MAJOR&types=CODE_SMELL Location: src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java Line No- 100 Change-Id: I83880e70d7c3dd91b8f344bf01b2184d83b612d0 Issue-ID: VFC-1034 Signed-off-by: ThamlurRaju --- diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java index 67fab75..4fbdc79 100644 --- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java +++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java @@ -97,7 +97,7 @@ public class SitesRoa { public JSONObject getSite(@Context HttpServletRequest context, @PathParam("datacenterId") String id) throws ServiceException { LOGGER.warn("SitesRoa::getSitesById id:{}", id); - Map map = new HashMap(10); + Map map = new HashMap<>(10); map.put(ParamConstant.PARAM_ID, id); List datacenters = sites.getList(map);