From: ThamlurRaju Date: Fri, 17 Aug 2018 07:29:35 +0000 (+0530) Subject: fixing major Sonar Issue X-Git-Tag: 1.2.0~13 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=42d487000331336b075cee955e679fd4b88e81d4;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-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 --- 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();