VfRollBack.java, CreateVnfNotification:Sonar issue 81/65781/1
authorArundathi Patil <arundpil@in.ibm.com>
Tue, 11 Sep 2018 09:55:21 +0000 (15:25 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Tue, 11 Sep 2018 09:55:33 +0000 (15:25 +0530)
Fixed sonar issues in vfRollBack.java and CreateVnfNotification.java

Issue-ID: SO-1015
Change-Id: I8d2cc0b589fe4b4b6426c0907e5a4650303b6f9b
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/VfRollback.java
adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/async/client/CreateVnfNotification.java

index 5dca869..3736669 100644 (file)
@@ -95,11 +95,6 @@ public class VfRollback {
        public void setRequestType(String requestType) {
                this.requestType = requestType;
        }
-       /*
-       private String volumeGroupHeatStackId;
-       private String baseGroupHeatStackId;
-       private boolean isBase = false;
-       */
        public String getVolumeGroupHeatStackId() {
                return this.volumeGroupHeatStackId;
        }
index 39bd3eb..ba301b1 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;
         }