summaryrefslogtreecommitdiffstats
path: root/controlloop/common/model-impl/vfc
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-03-02 16:02:28 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-02 16:02:28 +0000
commit3a45894ccb1f29ae0d227edae0eac064388fe59f (patch)
treef3b37caceec7e20b56824a6e12d16bbb43819176 /controlloop/common/model-impl/vfc
parentc11d90593b95f03f4b555af0c10ddf3bb2b262c1 (diff)
parent12db2b732e1e7191c2f48e23f1e14f6d81bf2cee (diff)
Merge "Reduce Technical Debt on drools-applications"
Diffstat (limited to 'controlloop/common/model-impl/vfc')
-rw-r--r--controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCResponseDescriptor.java2
-rw-r--r--controlloop/common/model-impl/vfc/src/test/java/org/onap/policy/vfc/TestDemo.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCResponseDescriptor.java b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCResponseDescriptor.java
index 81eb3bc4d..f237554fd 100644
--- a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCResponseDescriptor.java
+++ b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCResponseDescriptor.java
@@ -42,7 +42,7 @@ public class VFCResponseDescriptor implements Serializable {
private String responseId;
@SerializedName("responseHistoryList")
- public List<VFCResponseDescriptor> responseHistoryList;
+ private List<VFCResponseDescriptor> responseHistoryList;
public VFCResponseDescriptor() {
// Default constructor for VFCResponseDescriptor
diff --git a/controlloop/common/model-impl/vfc/src/test/java/org/onap/policy/vfc/TestDemo.java b/controlloop/common/model-impl/vfc/src/test/java/org/onap/policy/vfc/TestDemo.java
index 96a62bf9f..69d3d5838 100644
--- a/controlloop/common/model-impl/vfc/src/test/java/org/onap/policy/vfc/TestDemo.java
+++ b/controlloop/common/model-impl/vfc/src/test/java/org/onap/policy/vfc/TestDemo.java
@@ -66,8 +66,8 @@ public class TestDemo {
responseDescriptor.setErrorCode(null);
responseDescriptor.setResponseId("11");
- response.getResponseDescriptor().responseHistoryList = new LinkedList<>();
- response.getResponseDescriptor().responseHistoryList.add(responseDescriptor);
+ response.getResponseDescriptor().setResponseHistoryList(new LinkedList<>());
+ response.getResponseDescriptor().getResponseHistoryList().add(responseDescriptor);
body = Serialization.gsonPretty.toJson(response);
System.out.println(body);