From bf2a2faad8e56abfe39cba37fe5e8cee6bfe3a5c Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Fri, 8 Sep 2017 11:52:11 -0400 Subject: Clearing sonar critical for missing serialization These classes should be serializable in order to remove the sonar critical. Also clearing unused import/code messages. Issue-ID: POLICY-115 Change-Id: I25e504f6edae9fb38080e7d4d33b2b3e4cde4637 Signed-off-by: Pamela Dragosh --- .../java/org/onap/policy/aai/AAINQF199/AAINQF199VServer.java | 9 ++++++++- .../aai/src/main/java/org/onap/policy/aai/RelationshipList.java | 7 ++++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'controlloop/common/model-impl/aai/src/main') diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQF199/AAINQF199VServer.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQF199/AAINQF199VServer.java index 8667544eb..823dc76a0 100644 --- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQF199/AAINQF199VServer.java +++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQF199/AAINQF199VServer.java @@ -20,9 +20,16 @@ package org.onap.policy.aai.AAINQF199; +import java.io.Serializable; + import com.google.gson.annotations.SerializedName; -public class AAINQF199VServer { +public class AAINQF199VServer implements Serializable { + + /** + * + */ + private static final long serialVersionUID = -6718526692734215643L; @SerializedName("vserver-id") public String vserverId; diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipList.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipList.java index 36d34f75b..4799733da 100644 --- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipList.java +++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipList.java @@ -21,12 +21,17 @@ package org.onap.policy.aai; import java.util.List; +import java.io.Serializable; import java.util.LinkedList; import com.google.gson.annotations.SerializedName; -public class RelationshipList { +public class RelationshipList implements Serializable { + /** + * + */ + private static final long serialVersionUID = -1769880386474240406L; @SerializedName("relationship") public List relationship = new LinkedList(); -- cgit 1.2.3-korg