From 42d487000331336b075cee955e679fd4b88e81d4 Mon Sep 17 00:00:00 2001 From: ThamlurRaju Date: Fri, 17 Aug 2018 12:59: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-08if2a6pmCM&resolved=false&severities=MAJOR Location: src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java Line No- 78 Change-Id: Ia7abcafbf1b7576178378b98099a1f0155280d32 Issue-ID: VFC-1033 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') 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 6613ac4..67fab75 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 @@ -75,7 +75,7 @@ public class SitesRoa { */ @GET public JSONObject getSites(@Context HttpServletRequest context) throws ServiceException { - Map map = new HashMap(10); + Map map = new HashMap<>(10); List datacenters = sites.getList(map); JSONObject result = new JSONObject(); -- cgit 1.2.3-korg