diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/HttpServletBean.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/HttpServletBean.java index 6ef91c8b952..e374ba359d5 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/HttpServletBean.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/HttpServletBean.java @@ -106,9 +106,9 @@ public abstract class HttpServletBean extends HttpServlet implements Environment * Set the {@code Environment} that this servlet runs in. *

Any environment set here overrides the {@link StandardServletEnvironment} * provided by default. - * @since 3.1 * @throws IllegalArgumentException if environment is not assignable to * {@code ConfigurableEnvironment} + * @since 3.1 */ @Override public void setEnvironment(Environment environment) {