ARTEMIS-4827 remove unreachable or redundant code
This commit is contained in:
parent
be1459c939
commit
80ec64c3d9
|
@ -309,8 +309,6 @@ public class ActiveMQXAResourceWrapper implements XAResource, SessionFailureList
|
||||||
logger.debug(e.getMessage(), e);
|
logger.debug(e.getMessage(), e);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (cs != null)
|
|
||||||
cs.close();
|
|
||||||
if (serverLocator != null)
|
if (serverLocator != null)
|
||||||
serverLocator.close();
|
serverLocator.close();
|
||||||
} catch (Throwable ignored) {
|
} catch (Throwable ignored) {
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class AuthenticationFilter implements Filter {
|
||||||
//the hawtio logout servlet cleans the session and redirects to the login servlet
|
//the hawtio logout servlet cleans the session and redirects to the login servlet
|
||||||
HttpSession session = ((Request) servletRequest).getSession(false);
|
HttpSession session = ((Request) servletRequest).getSession(false);
|
||||||
if (session != null) {
|
if (session != null) {
|
||||||
AuditLogger.userSuccesfullyAuthenticatedInAudit(session != null ? (Subject) session.getAttribute("subject") : null);
|
AuditLogger.userSuccesfullyAuthenticatedInAudit((Subject) session.getAttribute("subject"));
|
||||||
}
|
}
|
||||||
} else if (status >= 400 && status < 599) {
|
} else if (status >= 400 && status < 599) {
|
||||||
//Client error responses (400 – 499)
|
//Client error responses (400 – 499)
|
||||||
|
|
Loading…
Reference in New Issue