Fixing checkstyle violations
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
2faec44dfb
commit
99a541f051
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue