Use diamond operator(<>) 05/15505/2
authorsurya-huawei <a.u.surya@huawei.com>
Tue, 26 Sep 2017 12:27:50 +0000 (17:57 +0530)
committerSURYA A U <a.u.surya@huawei.com>
Wed, 27 Sep 2017 03:10:55 +0000 (03:10 +0000)
Major Sonar Issue
*Replace type specification with diamond operator
This is done to reduce the verbosity of generics code

Issue-Id: SO-118
Change-Id: Id1a6e6d2e03f6f92a0e36b9326df61154c0ba910
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/CreateVnfNotification.java
bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/QueryVnfNotification.java
bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/UpdateVnfNotification.java

index 6715982..503f9f1 100644 (file)
@@ -319,7 +319,7 @@ public class CreateVnfNotification {
          */
         public List<CreateVnfNotification.Outputs.Entry> getEntry() {
             if (entry == null) {
-                entry = new ArrayList<CreateVnfNotification.Outputs.Entry>();
+                entry = new ArrayList<>();
             }
             return this.entry;
         }
index 15532cb..4e84234 100644 (file)
@@ -346,7 +346,7 @@ public class QueryVnfNotification {
          */\r
         public List<QueryVnfNotification.Outputs.Entry> getEntry() {\r
             if (entry == null) {\r
-                entry = new ArrayList<QueryVnfNotification.Outputs.Entry>();\r
+                entry = new ArrayList<>();\r
             }\r
             return this.entry;\r
         }\r
index aa344b2..79188e7 100644 (file)
@@ -292,7 +292,7 @@ public class UpdateVnfNotification {
          */
         public List<UpdateVnfNotification.Outputs.Entry> getEntry() {
             if (entry == null) {
-                entry = new ArrayList<UpdateVnfNotification.Outputs.Entry>();
+                entry = new ArrayList<>();
             }
             return this.entry;
         }