Sonar Major 87/29987/1
authorTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>
Thu, 1 Feb 2018 09:05:23 +0000 (14:35 +0530)
committerTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>
Thu, 1 Feb 2018 09:14:34 +0000 (14:44 +0530)
Replace the type specification with the diamond operator
DcaeServicesApiServiceImpl.java
Sonar link : https://sonar.onap.org/issues/search#resolved=false|assignees=__me__%2CBharathS24
Location : src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
Change-Id: I86abc7e42167783ade5dfc3a98fa05e19c5ca81b
Issue-ID: DCAEGEN2-290
Signed-off-by: TECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>
src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java

index bc1888f..1b2329f 100644 (file)
@@ -76,7 +76,7 @@ public class DcaeServicesApiServiceImpl extends DcaeServicesApiService {
         service.setVnfLocation(serviceObject.getVnfLocation());
         service.setDeploymentRef(serviceObject.getDeploymentRef());
 
-        List<DCAEServiceComponent> serviceComponents = new ArrayList<DCAEServiceComponent>();
+        List<DCAEServiceComponent> serviceComponents = new ArrayList<>();
 
         for (DCAEServiceComponentObject sco : componentObjects) {
             DCAEServiceComponent component = new DCAEServiceComponent();