From 716b8de45f0f5983ce9eb8cb618ed0a8859e029c Mon Sep 17 00:00:00 2001 From: "TECHMAHINDRA\\BS00493532" Date: Tue, 6 Feb 2018 14:25:20 +0530 Subject: Sonar:Major Replace type specification with diamond operator DcaeServiceTypesApiServiceImpl.java:L153 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: Ifa03875c154958004b41ed780f533f28093fa74e Issue-ID: DCAEGEN2-311 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/main/java/io/swagger') diff --git a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java index fe938f1..480e7af 100644 --- a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java +++ b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java @@ -150,7 +150,7 @@ public class DcaeServicesApiServiceImpl extends DcaeServicesApiService { sb.append(" join dcae_services_components_maps m on ds.service_id = m.service_id "); sb.append(" join dcae_service_components dsc on m.component_id = dsc.component_id"); - List whereClauses = new ArrayList(); + List whereClauses = new ArrayList<>(); if (typeId != null) { whereClauses.add("ds.type_id = :typeId"); -- cgit 1.2.3-korg