From 6b482df6faf90eb77d3d25bf72c8b006b43e8d22 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Fri, 16 Feb 2024 15:04:41 +0100 Subject: [PATCH] Clean up warning in Gradle build --- .../web/servlet/ComplexWebApplicationContext.java | 2 ++ 1 file changed, 2 insertions(+) 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 cd5f19bfc93..59368003520 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;