Remove unused logger,replace type specification 88/85888/2
authorSindhuri.A <arcot.sindhuri@huawei.com>
Sat, 20 Apr 2019 08:46:52 +0000 (14:16 +0530)
committerSindhu A <arcot.sindhuri@huawei.com>
Tue, 7 May 2019 04:37:55 +0000 (04:37 +0000)
Remove unused logger,replace type specification sdnc beans and mapper classes

Issue-ID: SO-1490

Change-Id: I9a671f0ade5b86dbfd4cce1fbc6c07c0fdcf38a8
Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sdnc/beans/SDNCRequest.java
bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sdnc/mapper/VnfTopologyOperationRequestMapper.java

index 5910975..12d1b0b 100644 (file)
@@ -21,7 +21,6 @@
 package org.onap.so.client.sdnc.beans;
 
 import java.io.Serializable;
-import java.time.Duration;
 import java.util.UUID;
 import org.onap.so.client.sdnc.endpoint.SDNCTopology;
 import org.apache.commons.lang3.builder.HashCodeBuilder;
@@ -35,8 +34,8 @@ public class SDNCRequest implements Serializable {
     private static final long serialVersionUID = 4679678988657593282L;
     private String timeOut = "PT1H";
     private SDNCTopology topology;
-    private String CorrelationValue = UUID.randomUUID().toString();
-    private String CorrelationName = "SDNCCallback";
+    private String correlationValue = UUID.randomUUID().toString();
+    private String correlationName = "SDNCCallback";
     private Object SDNCPayload;
 
 
@@ -57,19 +56,19 @@ public class SDNCRequest implements Serializable {
     }
 
     public String getCorrelationValue() {
-        return CorrelationValue;
+        return correlationValue;
     }
 
     public void setCorrelationValue(String correlationValue) {
-        CorrelationValue = correlationValue;
+        this.correlationValue = correlationValue;
     }
 
     public String getCorrelationName() {
-        return CorrelationName;
+        return correlationName;
     }
 
     public void setCorrelationName(String correlationName) {
-        CorrelationName = correlationName;
+        this.correlationName = correlationName;
     }
 
     public Object getSDNCPayload() {
@@ -86,13 +85,13 @@ public class SDNCRequest implements Serializable {
             return false;
         }
         SDNCRequest castOther = (SDNCRequest) other;
-        return new EqualsBuilder().append(CorrelationValue, castOther.CorrelationValue)
-                .append(CorrelationName, castOther.CorrelationName).isEquals();
+        return new EqualsBuilder().append(correlationValue, castOther.correlationValue)
+                .append(correlationName, castOther.correlationName).isEquals();
     }
 
     @Override
     public int hashCode() {
-        return new HashCodeBuilder().append(CorrelationValue).append(CorrelationName).toHashCode();
+        return new HashCodeBuilder().append(correlationValue).append(correlationName).toHashCode();
     }
 
 }
index f31bff9..e39e202 100644 (file)
@@ -126,7 +126,7 @@ public class VnfTopologyOperationRequestMapper {
         }
         List<InstanceGroup> instanceGroups = vnf.getInstanceGroups();
         List<GenericResourceApiVnfrequestinputVnfrequestinputVnfNetworkInstanceGroupIds> networkInstanceGroupIdList =
-                new ArrayList<GenericResourceApiVnfrequestinputVnfrequestinputVnfNetworkInstanceGroupIds>();
+                new ArrayList<>();
 
         for (InstanceGroup instanceGroup : instanceGroups) {
             if (ModelInfoInstanceGroup.TYPE_L3_NETWORK