From 63d5702986d5dc63eb3d0ed2e3b57ce3b529966f Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 30 Jul 2019 09:53:19 -0400 Subject: Fix managed noop topic source NOOP topic sources configured via TopicParameterGroup are left unmanaged. Removed a new override method, as it did not pass the "managed" flag down, while the method that already existed in the superclass already works correctly. Also restored "null" lists to TopicParameterGroup so-as not to break the behavior of its validate() method. Change-Id: Id392a3263c3bd1c8f278461715b441719817c47c Issue-ID: POLICY-1953 Signed-off-by: Jim Hahn --- .../onap/policy/common/endpoints/parameters/TopicParameterGroup.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'policy-endpoints/src/main/java/org/onap/policy/common/endpoints/parameters/TopicParameterGroup.java') diff --git a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/parameters/TopicParameterGroup.java b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/parameters/TopicParameterGroup.java index eab9c12f..4cd3893d 100644 --- a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/parameters/TopicParameterGroup.java +++ b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/parameters/TopicParameterGroup.java @@ -21,7 +21,6 @@ package org.onap.policy.common.endpoints.parameters; -import java.util.LinkedList; import java.util.List; import lombok.Getter; import lombok.Setter; @@ -43,8 +42,8 @@ import org.onap.policy.common.parameters.annotations.NotNull; @Setter public class TopicParameterGroup extends ParameterGroupImpl { - private final List topicSources = new LinkedList<>(); - private final List topicSinks = new LinkedList<>(); + private List topicSources; + private List topicSinks; public TopicParameterGroup() { super(TopicParameterGroup.class.getSimpleName()); -- cgit 1.2.3-korg