Fixing checkstyle violations

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2020-02-26 13:16:32 -06:00
parent 2faec44dfb
commit 99a541f051
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 17 additions and 17 deletions

View File

@ -112,15 +112,15 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
public static final int SERVLET_MAJOR_VERSION = 4; public static final int SERVLET_MAJOR_VERSION = 4;
public static final int SERVLET_MINOR_VERSION = 0; public static final int SERVLET_MINOR_VERSION = 0;
public static final Class<?>[] SERVLET_LISTENER_TYPES = public static final Class<?>[] SERVLET_LISTENER_TYPES =
{ {
ServletContextListener.class, ServletContextListener.class,
ServletContextAttributeListener.class, ServletContextAttributeListener.class,
ServletRequestListener.class, ServletRequestListener.class,
ServletRequestAttributeListener.class, ServletRequestAttributeListener.class,
HttpSessionIdListener.class, HttpSessionIdListener.class,
HttpSessionListener.class, HttpSessionListener.class,
HttpSessionAttributeListener.class HttpSessionAttributeListener.class
}; };
public static final int DEFAULT_LISTENER_TYPE_INDEX = 1; public static final int DEFAULT_LISTENER_TYPE_INDEX = 1;
@ -646,10 +646,10 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
_contextListeners.remove(listener); _contextListeners.remove(listener);
if (listener instanceof ServletContextListener) if (listener instanceof ServletContextListener)
{ {
_servletContextListeners.remove(listener); _servletContextListeners.remove(listener);
_destroyServletContextListeners.remove(listener); _destroyServletContextListeners.remove(listener);
} }
if (listener instanceof ServletContextAttributeListener) if (listener instanceof ServletContextAttributeListener)
_servletContextAttributeListeners.remove(listener); _servletContextAttributeListeners.remove(listener);