Sonar major issues 51/57651/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 26 Jul 2018 06:42:19 +0000 (12:12 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 26 Jul 2018 06:42:19 +0000 (12:12 +0530)
 Replace the type specification in this constructor call with the diamond operator
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.so%3Aso&open=AWJqzmdHRGy6eclHEzV_&resolved=false&rules=squid%3AS2293
Location:
adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/MsoVnfPluginAdapterImpl.java
Line No: 633

Change-Id: I788bf4dd5b7e5f586ef9dc5dc2ddda05508be9d3
Issue-ID: SO-758
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/MsoVnfPluginAdapterImpl.java

index 4e0d514..a6d0a00 100644 (file)
@@ -630,7 +630,7 @@ public class MsoVnfPluginAdapterImpl implements MsoVnfAdapter {
 
         if (inputs == null) {
                // Create an empty set of inputs
-               inputs = new HashMap<String,String>();
+               inputs = new HashMap<>();
                LOGGER.debug("inputs == null - setting to empty");
         } else {
                this.sendMapToDebug(inputs);