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>
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);