Sonar:Major 15/30415/1
authorTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>
Tue, 6 Feb 2018 09:48:16 +0000 (15:18 +0530)
committerTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>
Tue, 6 Feb 2018 09:49:02 +0000 (15:19 +0530)
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>
src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java

index fe938f1..acaa6cc 100644 (file)
@@ -229,7 +229,7 @@ public class DcaeServicesApiServiceImpl extends DcaeServicesApiService {
         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());