From 88626ebe53d6b7ebef10180cede9910149abbc68 Mon Sep 17 00:00:00 2001 From: sebdet Date: Wed, 21 Apr 2021 16:39:28 +0200 Subject: 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 Change-Id: I92aae94010cc8275bca5b1fe81bf54ab80f5f267 --- src/main/java/org/onap/policy/clamp/clds/ClampServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } -- cgit 1.2.3-korg