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

index 67fab75..4fbdc79 100644 (file)
@@ -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<String, Object> map = new HashMap<String, Object>(10);
+        Map<String, Object> map = new HashMap<>(10);
         map.put(ParamConstant.PARAM_ID, id);
         List<SitesEntity> datacenters = sites.getList(map);