From: sebdet Date: Wed, 21 Apr 2021 14:39:28 +0000 (+0200) Subject: Fix Sonar bugs X-Git-Tag: 6.1.0~5 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F120779%2F1;p=policy%2Fclamp.git 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 --- 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()); }