From 6a96be4360609a11cd2170a211798287d0bb139a Mon Sep 17 00:00:00 2001 From: "TECHMAHINDRA\\BS00493532" Date: Wed, 7 Feb 2018 14:29:47 +0530 Subject: Sonar:Major Replace type specification with diamond operator DcaeServicesApiServiceImpl.java:L336 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: Iacbc9f6fefe15850beea5611915b936ba73ec57d Issue-ID: DCAEGEN2-316 Signed-off-by: TECHMAHINDRA\BS00493532 --- src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java index 65c9d4f..df1207a 100644 --- a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java +++ b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java @@ -333,7 +333,7 @@ public class DcaeServicesApiServiceImpl extends DcaeServicesApiService { // 2) Insert/update DCAEServiceComponentObjects. Components exist independent of the associated DCAE service. - Map componentObjectsToSendBack = new HashMap(); + Map componentObjectsToSendBack = new HashMap<>(); for (DCAEServiceComponentRequest requestComponent : request.getComponents()) { // Have to query the database rather than checking the result of getting by service id because of the -- cgit 1.2.3-korg