aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/common/feature-controlloop-management/src/main/java
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2024-04-24 10:33:02 +0100
committeradheli.tavares <adheli.tavares@est.tech>2024-04-24 10:34:06 +0100
commit57dcb7a288d07566f7b2c191a2cc4aceb60a2f76 (patch)
tree1dc38597531952408b00e40f7433017190d54fd4 /controlloop/common/feature-controlloop-management/src/main/java
parent9da69f932b1378e1d16a9206a3aa5b3acbb1d38a (diff)
Fix topic configurations.
- adjust kafka configurations - remove any reference to dmaap or UEB Issue-ID: POLICY-4955 Change-Id: I8a5499d8145e6e02416d10a1da4cb96961ed3e0b Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'controlloop/common/feature-controlloop-management/src/main/java')
-rw-r--r--controlloop/common/feature-controlloop-management/src/main/java/org/onap/policy/drools/apps/controlloop/feature/management/ControlLoopManagementFeature.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/controlloop/common/feature-controlloop-management/src/main/java/org/onap/policy/drools/apps/controlloop/feature/management/ControlLoopManagementFeature.java b/controlloop/common/feature-controlloop-management/src/main/java/org/onap/policy/drools/apps/controlloop/feature/management/ControlLoopManagementFeature.java
index db078b20c..06a09998a 100644
--- a/controlloop/common/feature-controlloop-management/src/main/java/org/onap/policy/drools/apps/controlloop/feature/management/ControlLoopManagementFeature.java
+++ b/controlloop/common/feature-controlloop-management/src/main/java/org/onap/policy/drools/apps/controlloop/feature/management/ControlLoopManagementFeature.java
@@ -3,6 +3,7 @@
* ONAP
* ================================================================================
* Copyright (C) 2018-2021 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2024 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -53,7 +54,7 @@ public class ControlLoopManagementFeature implements PolicyEngineFeatureApi {
throw new IllegalArgumentException("Invalid Controller Name");
}
- if (controller.getDrools().getSessionNames().stream().filter(sessionName::equals).count() <= 0) {
+ if (controller.getDrools().getSessionNames().stream().noneMatch(sessionName::equals)) {
throw new IllegalArgumentException("Invalid Session Name");
}