diff --git a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/FrameworkServlet.java b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/FrameworkServlet.java index fecd9899bea..6d39d27b43a 100644 --- a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/FrameworkServlet.java +++ b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/FrameworkServlet.java @@ -18,6 +18,7 @@ package org.springframework.web.servlet; import java.io.IOException; import java.security.Principal; + import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; @@ -50,9 +51,9 @@ import org.springframework.web.util.WebUtils; * *

This class offers the following functionality: *

@@ -64,10 +65,11 @@ import org.springframework.web.util.WebUtils; * *

Detects a "contextClass" parameter at the servlet init-param level, * falling back to the default context class, - * {@link org.springframework.web.context.support.XmlWebApplicationContext}, - * if not found. Note that, with the default FrameworkServlet, - * a custom context class needs to implement the - * {@link org.springframework.web.context.ConfigurableWebApplicationContext} SPI. + * {@link org.springframework.web.context.support.XmlWebApplicationContext + * XmlWebApplicationContext}, if not found. Note that, with the default + * {@code FrameworkServlet}, a custom context class needs to implement the + * {@link org.springframework.web.context.ConfigurableWebApplicationContext + * ConfigurableWebApplicationContext} SPI. * *

Passes a "contextConfigLocation" servlet init-param to the context instance, * parsing it into potentially multiple file paths which can be separated by any @@ -93,6 +95,7 @@ import org.springframework.web.util.WebUtils; * @see #setContextConfigLocation * @see #setNamespace */ +@SuppressWarnings("serial") public abstract class FrameworkServlet extends HttpServletBean { /** @@ -106,7 +109,7 @@ public abstract class FrameworkServlet extends HttpServletBean { * Default context class for FrameworkServlet. * @see org.springframework.web.context.support.XmlWebApplicationContext */ - public static final Class DEFAULT_CONTEXT_CLASS = XmlWebApplicationContext.class; + public static final Class DEFAULT_CONTEXT_CLASS = XmlWebApplicationContext.class; /** * Prefix for the ServletContext attribute for the WebApplicationContext. @@ -119,7 +122,7 @@ public abstract class FrameworkServlet extends HttpServletBean { private String contextAttribute; /** WebApplicationContext implementation class to create */ - private Class contextClass = DEFAULT_CONTEXT_CLASS; + private Class contextClass = DEFAULT_CONTEXT_CLASS; /** Namespace for this servlet */ private String namespace; @@ -174,14 +177,14 @@ public abstract class FrameworkServlet extends HttpServletBean { * interface. * @see #createWebApplicationContext */ - public void setContextClass(Class contextClass) { + public void setContextClass(Class contextClass) { this.contextClass = contextClass; } /** * Return the custom context class. */ - public Class getContextClass() { + public Class getContextClass() { return this.contextClass; }