ARTEMIS-4827 remove unreachable or redundant code

This commit is contained in:
Justin Bertram 2024-06-19 13:55:52 -05:00 committed by clebertsuconic
parent be1459c939
commit 80ec64c3d9
2 changed files with 1 additions and 3 deletions

View File

@ -309,8 +309,6 @@ public class ActiveMQXAResourceWrapper implements XAResource, SessionFailureList
logger.debug(e.getMessage(), e);
try {
if (cs != null)
cs.close();
if (serverLocator != null)
serverLocator.close();
} catch (Throwable ignored) {

View File

@ -49,7 +49,7 @@ public class AuthenticationFilter implements Filter {
//the hawtio logout servlet cleans the session and redirects to the login servlet
HttpSession session = ((Request) servletRequest).getSession(false);
if (session != null) {
AuditLogger.userSuccesfullyAuthenticatedInAudit(session != null ? (Subject) session.getAttribute("subject") : null);
AuditLogger.userSuccesfullyAuthenticatedInAudit((Subject) session.getAttribute("subject"));
}
} else if (status >= 400 && status < 599) {
//Client error responses (400 499)