aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2021-04-21 16:39:28 +0200
committersebdet <sebastien.determe@intl.att.com>2021-04-21 16:39:28 +0200
commit88626ebe53d6b7ebef10180cede9910149abbc68 (patch)
treeae6d6e8d8c1245d7027c9b1a709cf2ebab8d9b1e
parent4dfacd240b7c403b43b7e691c335a28d260dfc94 (diff)
Fix Sonar bugs
Fix bug introduced in AAF authentication due to changes done to fix Sonar issues Issue-ID: POLICY-3200 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I92aae94010cc8275bca5b1fe81bf54ab80f5f267
-rw-r--r--src/main/java/org/onap/policy/clamp/clds/ClampServlet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/policy/clamp/clds/ClampServlet.java b/src/main/java/org/onap/policy/clamp/clds/ClampServlet.java
index eb64438bf..ccde7cf11 100644
--- a/src/main/java/org/onap/policy/clamp/clds/ClampServlet.java
+++ b/src/main/java/org/onap/policy/clamp/clds/ClampServlet.java
@@ -76,7 +76,7 @@ public class ClampServlet extends CamelHttpTransportServlet {
WebApplicationContext webAppContext = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
if (webAppContext != null) {
String authClassProperty = webAppContext.getEnvironment().getProperty(AUTHENTICATION_CLASS);
- if (StringUtils.isBlank(authClassProperty)) {
+ if (!StringUtils.isBlank(authClassProperty)) {
return Arrays.stream(authClassProperty.split(",")).map(String::trim)
.collect(Collectors.toList());
}