Sonar Major fix 05/29505/1
authorPooja03 <PM00501616@techmahindra.com>
Mon, 29 Jan 2018 11:56:22 +0000 (17:26 +0530)
committerPooja03 <PM00501616@techmahindra.com>
Mon, 29 Jan 2018 11:56:22 +0000 (17:26 +0530)
Replace the type specification in this constructor call with the diamond operator

Sonar Link:https://sonar.onap.org/component_issues/index?id=org.onap.dcaegen2.platform%3Ainventory-api#resolved=false|severities=CRITICAL%2CMAJOR

Location:DcaeServiceTypesApiServiceImpl.java:L96

Change-Id: If36e27e862ee2d8db4c2f2b9def49afa88cf9632
Issue-ID: DCAEGEN2-284
Signed-off-by: Pooja03 <PM00501616@techmahindra.com>
src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java

index 696cd87..b478edf 100644 (file)
@@ -93,7 +93,7 @@ public class DcaeServiceTypesApiServiceImpl extends DcaeServiceTypesApiService {
                 sb.append("dcae_service_types");
             }
 
-            List<String> whereClauses = new ArrayList<String>();
+            List<String> whereClauses = new ArrayList<>();
 
             if (typeName != null) {
                 whereClauses.add(":typeName = type_name");