Sonar:Major 05/30405/1
authorTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>
Tue, 6 Feb 2018 08:55:20 +0000 (14:25 +0530)
committerTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>
Tue, 6 Feb 2018 08:56:23 +0000 (14:26 +0530)
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 <BS00493532@techmahindra.com>
src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java

index fe938f1..480e7af 100644 (file)
@@ -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<String> whereClauses = new ArrayList<String>();
+            List<String> whereClauses = new ArrayList<>();
 
             if (typeId != null) {
                 whereClauses.add("ds.type_id = :typeId");