From 4ada70cf2559b8d270daebeed0f813b4387b245e Mon Sep 17 00:00:00 2001 From: surya-huawei Date: Tue, 26 Sep 2017 17:57:50 +0530 Subject: Use diamond operator(<>) 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 --- .../openecomp/mso/bpmn/common/adapter/vnf/CreateVnfNotification.java | 2 +- .../org/openecomp/mso/bpmn/common/adapter/vnf/QueryVnfNotification.java | 2 +- .../openecomp/mso/bpmn/common/adapter/vnf/UpdateVnfNotification.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'bpmn/MSOCommonBPMN') diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/CreateVnfNotification.java b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/CreateVnfNotification.java index 671598238a..503f9f1b9f 100644 --- a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/CreateVnfNotification.java +++ b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/CreateVnfNotification.java @@ -319,7 +319,7 @@ public class CreateVnfNotification { */ public List getEntry() { if (entry == null) { - entry = new ArrayList(); + entry = new ArrayList<>(); } return this.entry; } diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/QueryVnfNotification.java b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/QueryVnfNotification.java index 15532cb735..4e84234c81 100644 --- a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/QueryVnfNotification.java +++ b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/QueryVnfNotification.java @@ -346,7 +346,7 @@ public class QueryVnfNotification { */ public List getEntry() { if (entry == null) { - entry = new ArrayList(); + entry = new ArrayList<>(); } return this.entry; } diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/UpdateVnfNotification.java b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/UpdateVnfNotification.java index aa344b2f09..79188e77b6 100644 --- a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/UpdateVnfNotification.java +++ b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/UpdateVnfNotification.java @@ -292,7 +292,7 @@ public class UpdateVnfNotification { */ public List getEntry() { if (entry == null) { - entry = new ArrayList(); + entry = new ArrayList<>(); } return this.entry; } -- cgit 1.2.3-korg