Replace type specification with diamond operator
DcaeServicesApiServiceImpl.java:L232
Sonar link : https://sonar.onap.org/component_issues/index?id=org.onap.dcaegen2.platform%3Ainventory-api#resolved=false|severities=MAJOR|assignees=BharathS24
Location : src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
Change-Id: I412690de378ff2ba550b2906d7a6861254ab83c7
Issue-ID: DCAEGEN2-313
Signed-off-by: TECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>
List<DCAEServiceObject> serviceObjectsSliced = serviceObjects.subList(offset, endpoint);
DCAEServiceComponentsDAO componentsDAO = InventoryDAOManager.getInstance().getDCAEServiceComponentsDAO();
- List<DCAEService> services = new ArrayList<DCAEService>();
+ List<DCAEService> services = new ArrayList<>();
for (DCAEServiceObject so : serviceObjectsSliced) {
List<DCAEServiceComponentObject> components = componentsDAO.getByServiceId(so.getServiceId());