summaryrefslogtreecommitdiffstats
path: root/models-interactions/model-impl/appc/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'models-interactions/model-impl/appc/src/main')
-rw-r--r--models-interactions/model-impl/appc/src/main/java/org/onap/policy/appc/Response.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/models-interactions/model-impl/appc/src/main/java/org/onap/policy/appc/Response.java b/models-interactions/model-impl/appc/src/main/java/org/onap/policy/appc/Response.java
index ae8b76423..fb70151f6 100644
--- a/models-interactions/model-impl/appc/src/main/java/org/onap/policy/appc/Response.java
+++ b/models-interactions/model-impl/appc/src/main/java/org/onap/policy/appc/Response.java
@@ -38,8 +38,13 @@ public class Response implements Serializable {
@SerializedName("CommonHeader")
private CommonHeader commonHeader;
+ /**
+ * This should only be populated if the incoming message actually has a "Status"
+ * field. Otherwise, actor.appc will be unable to use this to distinguish between
+ * Request and Response objects.
+ */
@SerializedName("Status")
- private ResponseStatus status = new ResponseStatus();
+ private ResponseStatus status;
@SerializedName("Payload")
private Map<String, Object> payload = new HashMap<>();