From 36b62be84b398044e1feae657c662dba6247782f Mon Sep 17 00:00:00 2001 From: Instrumental Date: Thu, 29 Mar 2018 20:26:02 -0500 Subject: Clean up Sonar results 2 Issue-ID: AAF-206 Change-Id: Ia000b144be58af970f4a5264ca5a9718fdbf9f5d Signed-off-by: Instrumental --- .../src/main/java/com/att/aaf/cadi/cass/AAFAuthenticator.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cadi/cass/src') diff --git a/cadi/cass/src/main/java/com/att/aaf/cadi/cass/AAFAuthenticator.java b/cadi/cass/src/main/java/com/att/aaf/cadi/cass/AAFAuthenticator.java index 3e87a366..7362b13e 100644 --- a/cadi/cass/src/main/java/com/att/aaf/cadi/cass/AAFAuthenticator.java +++ b/cadi/cass/src/main/java/com/att/aaf/cadi/cass/AAFAuthenticator.java @@ -153,11 +153,13 @@ public class AAFAuthenticator extends AAFBase implements ISaslAwareAuthenticator end = i; } - if (user == null) + if (user == null) { throw new AuthenticationException("Authentication ID must not be null"); - if (pass == null) { - throw new AuthenticationException("Password must not be null"); } + // SONAR thinks this code won't be hit, and keeps calling it a "Blocker" (???) so we delete +// if (pass == null) { +// throw new AuthenticationException("Password must not be null"); +// } Map credentials = new HashMap(); try { credentials.put(IAuthenticator.USERNAME_KEY, new String(user, Config.UTF_8)); -- cgit 1.2.3-korg