fixing major Sonar Issue 41/61041/1
authorThamlurRaju <thamlurraju468@gmail.com>
Fri, 17 Aug 2018 07:29:35 +0000 (12:59 +0530)
committerThamlurRaju <thamlurraju468@gmail.com>
Fri, 17 Aug 2018 07:29:35 +0000 (12:59 +0530)
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 <thamlurraju468@gmail.com>
ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java

index 6613ac4..67fab75 100644 (file)
@@ -75,7 +75,7 @@ public class SitesRoa {
      */
     @GET
     public JSONObject getSites(@Context HttpServletRequest context) throws ServiceException {
-        Map<String, Object> map = new HashMap<String, Object>(10);
+        Map<String, Object> map = new HashMap<>(10);
         List<SitesEntity> datacenters = sites.getList(map);
 
         JSONObject result = new JSONObject();