summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>2018-02-07 12:45:38 +0530
committerTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>2018-02-07 12:45:57 +0530
commit1aea9b110935e7ebe66d83aa8feb2f65cbfdd17f (patch)
treeb95c273cfa76103c88a5072fa6b398d1ea8cb6b0 /src/main
parent06ec2b0458b49a33beb44c27a35394abdd4ff9ed (diff)
Sonar:Major
Replace type specification with diamond operator DcaeServicesApiServiceImpl.java:L305 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: If46a8c533de9a33d244ef4b9a76c29195c691988 Issue-ID: DCAEGEN2-315 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 65c9d4f..1f2c1b3 100644
--- a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
+++ b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
@@ -302,7 +302,7 @@ public class DcaeServicesApiServiceImpl extends DcaeServicesApiService {
// Watch! We have to query for services regardless of status because we need to account for "removed" instances
// that get resurrected.
final DCAEServiceObject serviceObjectFromStore = servicesDAO.getByServiceId(serviceId);
- final Map<String, DCAEServiceComponentObject> componentObjectsFromStore = new HashMap<String, DCAEServiceComponentObject>();
+ final Map<String, DCAEServiceComponentObject> componentObjectsFromStore = new HashMap<>();
for (DCAEServiceComponentObject componentObject : componentsDAO.getByServiceId(serviceId)) {
componentObjectsFromStore.put(componentObject.getComponentId(), componentObject);