aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>2018-02-06 15:18:16 +0530
committerTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>2018-02-06 15:19:02 +0530
commitdf907d967b89b09b5d8b3d5b2b16a22266fa5505 (patch)
tree9861b83365beeefd7921c0fa31be934784ef35e3 /src/main
parentdbc8f2fc052da2f8a017990774f27f24c18241ca (diff)
Sonar:Major
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>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
index fe938f1..acaa6cc 100644
--- a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
+++ b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
@@ -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());