diff options
Diffstat (limited to 'feature-mdc-filters')
-rwxr-xr-x | feature-mdc-filters/src/main/java/org/onap/policy/drools/mdc/filters/MdcTopicFilter.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/feature-mdc-filters/src/main/java/org/onap/policy/drools/mdc/filters/MdcTopicFilter.java b/feature-mdc-filters/src/main/java/org/onap/policy/drools/mdc/filters/MdcTopicFilter.java index 4ebe18e1..36f63efd 100755 --- a/feature-mdc-filters/src/main/java/org/onap/policy/drools/mdc/filters/MdcTopicFilter.java +++ b/feature-mdc-filters/src/main/java/org/onap/policy/drools/mdc/filters/MdcTopicFilter.java @@ -26,6 +26,7 @@ import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import lombok.AllArgsConstructor; import lombok.Getter; import org.apache.commons.lang3.StringUtils; import org.onap.policy.drools.protocol.coders.JsonProtocolFilter; @@ -44,6 +45,7 @@ public class MdcTopicFilter { private final Map<String, FilterRule> rules = new HashMap<>(); @Getter + @AllArgsConstructor public static class FilterRule { private String mdcKey; private List<String> paths; @@ -53,17 +55,6 @@ public class MdcTopicFilter { this.paths = Arrays.asList(path); } - /** - * Constructor. - * - * @param mdcKey the key to the filter rule - * @param paths the list of potential paths to the key - */ - public FilterRule(String mdcKey, List<String> paths) { - this.mdcKey = mdcKey; - this.paths = paths; - } - protected void setMdcKey(String mdcKey) { if (StringUtils.isBlank(mdcKey)) { throw new IllegalArgumentException(MDC_KEY_ERROR); |