diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/ComplexWebApplicationContext.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/ComplexWebApplicationContext.java index cd5f19bfc9..5936800352 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/ComplexWebApplicationContext.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/ComplexWebApplicationContext.java @@ -274,6 +274,7 @@ public class ComplexWebApplicationContext extends StaticWebApplicationContext { return null; } + @Deprecated @Override public long getLastModified(HttpServletRequest request, Object delegate) { return ((MyHandler) delegate).lastModified(); @@ -294,6 +295,7 @@ public class ComplexWebApplicationContext extends StaticWebApplicationContext { throw new ServletException("dummy"); } + @Deprecated @Override public long getLastModified(HttpServletRequest request, Object delegate) { return -1;