From 488a6f7ffcb94c3e9fa578bf59c1623fb304b31a Mon Sep 17 00:00:00 2001 From: ThamlurRaju Date: Fri, 17 Aug 2018 14:27:35 +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=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 --- .../java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ResmanagementService/service/src/main') 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); -- cgit 1.2.3-korg