Use lombok annotations for so, vfc 21/122021/1
authorJim Hahn <jrh3@att.com>
Thu, 17 Jun 2021 19:26:35 +0000 (15:26 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 17 Jun 2021 19:33:45 +0000 (15:33 -0400)
Issue-ID: POLICY-3396
Change-Id: I33781c72dd1c0b9a7a525c23e81c4259fa32384f
Signed-off-by: Jim Hahn <jrh3@att.com>
27 files changed:
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoAsyncRequestStatus.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoCloudConfiguration.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoInstanceReferences.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoModelInfo.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoPolicyExceptionHolder.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRelatedInstance.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRelatedInstanceListElement.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequest.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequest3gpp.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequestDetails.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequestError.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequestInfo.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequestParameters.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequestStatus.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoResponse.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoResponseWrapper.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoServiceExceptionHolder.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoSubscriberInfo.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/util/Serialization.java
models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoRequestDetailsTest.java
models-interactions/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealActionVmInfo.java
models-interactions/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealAdditionalParams.java
models-interactions/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealRequest.java
models-interactions/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcRequest.java
models-interactions/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcResponse.java
models-interactions/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcResponseDescriptor.java
models-interactions/model-impl/vfc/src/main/java/org/onap/policy/vfc/util/Serialization.java

index 7475c8a..ff43a01 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -40,8 +40,4 @@ public class SoAsyncRequestStatus implements Serializable {
     private String requestScope;
     private String requestType;
     private SoRequestStatus requestStatus;
-
-    public SoAsyncRequestStatus() {
-        // required by author
-    }
 }
index a991e70..d7857f3 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -33,8 +33,4 @@ public class SoCloudConfiguration implements Serializable {
 
     private String lcpCloudRegionId;
     private String tenantId;
-
-    public SoCloudConfiguration() {
-        //required by author
-    }
 }
index 5d1b373..98f81e4 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -33,8 +33,4 @@ public class SoInstanceReferences implements Serializable {
 
     private String requestId;
     private String instanceId;
-
-    public SoInstanceReferences() {
-        //required by author
-    }
 }
index 785f341..025d063 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -38,8 +38,4 @@ public class SoModelInfo implements Serializable {
     private String modelVersion;
     private String modelCustomizationName;
     private String modelCustomizationId;
-
-    public SoModelInfo() {
-      //required by author
-    }
 }
index 173a6e0..e5c9f6f 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -33,8 +33,4 @@ public class SoPolicyExceptionHolder implements Serializable {
 
     private String messageId;
     private String text;
-
-    public SoPolicyExceptionHolder() {
-      //required by author
-    }
 }
index 044853f..51d4884 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -34,8 +34,4 @@ public class SoRelatedInstance implements Serializable {
     private String instanceId;
     private String instanceName;
     private SoModelInfo modelInfo;
-
-    public SoRelatedInstance() {
-      //required by author
-    }
 }
index 8cfaf86..615f942 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -28,11 +28,8 @@ import lombok.Setter;
 @Getter
 @Setter
 public class SoRelatedInstanceListElement implements Serializable {
+
     private static final long serialVersionUID = -3283942659786236032L;
-    private SoRelatedInstance relatedInstance;
 
-    public SoRelatedInstanceListElement() {
-      //required by author
-    }
+    private SoRelatedInstance relatedInstance;
 }
index 8e28cc3..6168332 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -42,8 +42,4 @@ public class SoRequest implements Serializable {
     private SoRequestStatus requestStatus;
 
     private transient SoOperationType operationType;
-
-    public SoRequest() {
-        // required by author
-    }
 }
index 212eabe..820f6af 100644 (file)
@@ -3,6 +3,7 @@
  * ONAP
  * ================================================================================
  * Copyright (C) 2020 Wipro Limited.
+ * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -41,9 +42,4 @@ public class SoRequest3gpp implements Serializable {
     private String subscriptionServiceType;
     private String networkType;
     private Map<String, Object> additionalProperties;
-
-
-    public SoRequest3gpp() {
-        // required by author
-    }
 }
index 9c3a4ec..66b493e 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * Modifications Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
@@ -28,11 +28,15 @@ import java.util.List;
 import java.util.Map;
 import lombok.EqualsAndHashCode;
 import lombok.Getter;
+import lombok.NoArgsConstructor;
 import lombok.Setter;
+import lombok.ToString;
 
 @Getter
 @Setter
 @EqualsAndHashCode
+@ToString
+@NoArgsConstructor
 public class SoRequestDetails implements Serializable {
 
     private static final long serialVersionUID = -3283942659786236032L;
@@ -45,9 +49,6 @@ public class SoRequestDetails implements Serializable {
     private SoRequestParameters requestParameters;
     private List<Map<String, String>> configurationParameters = new LinkedList<>();
 
-    public SoRequestDetails() {
-    }
-
     /**
      * Constructor.
      *
@@ -61,13 +62,4 @@ public class SoRequestDetails implements Serializable {
         this.requestParameters = soRequestDetails.requestParameters;
         this.subscriberInfo = soRequestDetails.subscriberInfo;
     }
-
-    @Override
-    public String toString() {
-        return "SORequestDetails [modelInfo=" + modelInfo + ", cloudConfiguration=" + cloudConfiguration
-            + ", requestInfo=" + requestInfo + ", subscriberInfo=" + subscriberInfo
-            + ", relatedInstanceList=" + relatedInstanceList + ", requestParameters=" + requestParameters
-            + ", configurationParameters=" + configurationParameters + "]";
-    }
-
 }
index 2f9f135..f134388 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -33,8 +33,4 @@ public class SoRequestError implements Serializable {
 
     private SoPolicyExceptionHolder policyException;
     private SoServiceExceptionHolder serviceException;
-
-    public SoRequestError() {
-        // required by author
-    }
 }
index b6a840c..c68ab77 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -41,8 +41,4 @@ public class SoRequestInfo implements Serializable {
     private String orderNumber;
     private Integer orderVersion;
     private String requestorId;
-
-    public SoRequestInfo() {
-        // required by author
-    }
 }
index e9451e2..dfe6e0e 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -37,8 +37,4 @@ public class SoRequestParameters implements Serializable {
     private String subscriptionServiceType;
     private boolean usePreload;
     private List<Map<String, String>> userParams = new LinkedList<>();
-
-    public SoRequestParameters() {
-        // required by author
-    }
 }
index 8accc5d..c3f7b29 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -35,8 +35,4 @@ public class SoRequestStatus implements Serializable {
     private String requestState;
     private String timestamp;
     private boolean wasRolledBack;
-
-    public SoRequestStatus() {
-      //required by author
-    }
 }
index 22079b5..3cbaa31 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -35,8 +35,4 @@ public class SoResponse implements Serializable {
     private SoRequestError requestError;
     private SoRequest request;
     private int httpResponseCode;
-
-    public SoResponse() {
-        // required by author
-    }
 }
index b6eef29..198d169 100644 (file)
@@ -23,11 +23,15 @@ package org.onap.policy.so;
 
 import com.google.gson.annotations.SerializedName;
 import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.EqualsAndHashCode;
 import lombok.Getter;
 import lombok.Setter;
 
 @Getter
 @Setter
+@AllArgsConstructor
+@EqualsAndHashCode
 public class SoResponseWrapper implements Serializable {
 
     private static final long serialVersionUID = 7673023687132889069L;
@@ -35,48 +39,9 @@ public class SoResponseWrapper implements Serializable {
     @SerializedName("SoResponse")
     private SoResponse soResponse;
 
+    @EqualsAndHashCode.Include
     private transient String requestId;
 
-    public SoResponseWrapper(SoResponse response, String reqId) {
-        this.soResponse = response;
-        this.requestId = reqId;
-    }
-
-    @Override
-    public boolean equals(Object obj) {
-        if (this == obj) {
-            return true;
-        }
-        if (obj == null) {
-            return false;
-        }
-        if (getClass() != obj.getClass()) {
-            return false;
-        }
-        SoResponseWrapper other = (SoResponseWrapper) obj;
-        if (soResponse == null) {
-            if (other.soResponse != null) {
-                return false;
-            }
-        } else if (!soResponse.equals(other.soResponse)) {
-            return false;
-        }
-        if (requestId == null) {
-            return other.requestId == null;
-        } else {
-            return requestId.equals(other.requestId);
-        }
-    }
-
-    @Override
-    public int hashCode() {
-        final var prime = 31;
-        int result = super.hashCode();
-        result = prime * result + ((soResponse == null) ? 0 : soResponse.hashCode());
-        result = prime * result + ((requestId == null) ? 0 : requestId.hashCode());
-        return result;
-    }
-
     @Override
     public String toString() {
         return "SOResponseWrapper [SOResponse=" + soResponse + ", RequestId=" + requestId + "]";
index 78390d7..7f05b31 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -36,8 +36,4 @@ public class SoServiceExceptionHolder implements Serializable {
     private String messageId;
     private String text;
     private List<String> variables = new LinkedList<>();
-
-    public SoServiceExceptionHolder() {
-        // required by author
-    }
 }
index 2e85410..9fc1fc8 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * so
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -34,8 +34,4 @@ public class SoSubscriberInfo implements Serializable {
     private String globalSubscriberId;
     private String subscriberCommonSiteId;
     private String subscriberName;
-
-    public SoSubscriberInfo() {
-        //required by author
-    }
 }
index 7850638..4aac0b8 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * mso
  * ================================================================================
- * Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -24,16 +24,14 @@ package org.onap.policy.so.util;
 import com.google.gson.Gson;
 import com.google.gson.GsonBuilder;
 import java.time.LocalDateTime;
+import lombok.AccessLevel;
+import lombok.NoArgsConstructor;
 
+@NoArgsConstructor(access = AccessLevel.PRIVATE)
 public final class Serialization {
 
     public static final Gson gsonPretty =
                     new GsonBuilder().disableHtmlEscaping().setPrettyPrinting()
                                     .registerTypeAdapter(LocalDateTime.class, new SoLocalDateTimeTypeAdapter())
                                     .create();
-
-    private Serialization() {
-        // utility class with explicit private constructor
-        // change if class is more than utility
-    }
 }
index 66de1b2..4866f3b 100644 (file)
@@ -109,7 +109,7 @@ public class SoRequestDetailsTest {
         assertEquals(subscriberInfo, details.getSubscriberInfo());
         assertNotEquals(0, details.hashCode());
 
-        assertEquals("SORequestDetails [modelInfo=org.onap.policy.so", details.toString().substring(0,  46));
+        assertEquals("SoRequestDetails(modelInfo=org.onap.policy.so", details.toString().substring(0,  45));
 
         SoRequestDetails copiedDetails = new SoRequestDetails(details);
 
index 20c5588..22cda1d 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * Copyright (C) 2017-2019 Intel Corp. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
- * Modifications Copyright (C) 2018-2019 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019, 2021 AT&T Corporation. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -32,8 +32,4 @@ public class VfcHealActionVmInfo implements Serializable {
 
     private String vmid;
     private String vmname;
-
-    public VfcHealActionVmInfo() {
-        // Default constructor
-    }
 }
index 2b06a8f..ad71dd1 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * Copyright (C) 2017-2019 Intel Corp. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
- * Modifications Copyright (C) 2018-2019 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019, 2021 AT&T Corporation. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -35,8 +35,4 @@ public class VfcHealAdditionalParams implements Serializable {
 
     @SerializedName("actionvminfo")
     private VfcHealActionVmInfo actionInfo;
-
-    public VfcHealAdditionalParams() {
-        // Default constructor
-    }
 }
index 1acaddf..e23ee84 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * Copyright (C) 2017-2019 Intel Corp. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
- * Modifications Copyright (C) 2018-2019 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019, 2021 AT&T Corporation. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -33,8 +33,4 @@ public class VfcHealRequest implements Serializable {
     private String vnfInstanceId;
     private String cause;
     private VfcHealAdditionalParams additionalParams;
-
-    public VfcHealRequest() {
-        // Default constructor
-    }
 }
index 39f5e64..3dd82ee 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * Copyright (C) 2017-2019 Intel Corp. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
- * Modifications Copyright (C) 2018-2019 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019, 2021 AT&T Corporation. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -37,8 +37,4 @@ public class VfcRequest implements Serializable {
 
     @SerializedName("healVnfData")
     private VfcHealRequest healRequest;
-
-    public VfcRequest() {
-        // Default constructor
-    }
 }
index 11ee49b..51c5623 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * Copyright (C) 2017-2019 Intel Corp. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
- * Modifications Copyright (C) 2018-2019 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019, 2021 AT&T Corporation. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -34,8 +34,4 @@ public class VfcResponse implements Serializable {
     private VfcResponseDescriptor responseDescriptor;
 
     private transient String requestId;
-
-    public VfcResponse() {
-        // Default constructor
-    }
 }
index d11aad8..64035ce 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * Copyright (C) 2017-2019 Intel Corp. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
- * Modifications Copyright (C) 2018-2019 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019, 2021 AT&T Corporation. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -37,8 +37,4 @@ public class VfcResponseDescriptor implements Serializable {
     private String errorCode;
     private String responseId;
     private List<VfcResponseDescriptor> responseHistoryList;
-
-    public VfcResponseDescriptor() {
-        // Default constructor
-    }
 }
index 6e352d2..fd9d20d 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * Copyright (C) 2017-2019 Intel Corp. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
- * Modifications Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2018, 2021 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -22,13 +22,12 @@ package org.onap.policy.vfc.util;
 
 import com.google.gson.Gson;
 import com.google.gson.GsonBuilder;
+import lombok.AccessLevel;
+import lombok.NoArgsConstructor;
 
+@NoArgsConstructor(access = AccessLevel.PRIVATE)
 public final class Serialization {
     public static final Gson gsonPretty = new GsonBuilder().disableHtmlEscaping()
             .setPrettyPrinting()
             .create();
-
-    private Serialization() {
-    }
-
 }