Sonar:Major 15/29615/2
authorSumapriya Sarvepalli <SS00493505@TechMahindra.com>
Wed, 31 Jan 2018 07:04:53 +0000 (12:34 +0530)
committerSumapriya Sarvepalli <SS00493505@TechMahindra.com>
Wed, 31 Jan 2018 07:05:05 +0000 (12:35 +0530)
The diamond operator (<>) should be used
OrchestrationRequests.java:L163

Link: https://sonar.onap.org/issues/search#resolved=false|severities=MAJOR|rules=squid%3AS2293|assignees=__me__
Location:OrchestrationRequests.java:L163

Change-Id: I2b3241d46d72b9ad52f2009dc7746cf4a3f456ea
Issue-ID: SO-397
Signed-off-by: Sumapriya Sarvepalli <SS00493505@TechMahindra.com>
mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/OrchestrationRequests.java

index 2f32e80..d60915b 100644 (file)
@@ -160,7 +160,7 @@ public class OrchestrationRequests {
 
                        orchestrationList = new GetOrchestrationListResponse();
 
-                       List<RequestList> requestLists = new ArrayList<RequestList>();
+                       List<RequestList> requestLists = new ArrayList<>();
 
                        for (InfraActiveRequests infraActive : activeRequests) {