Migrate removed LastModified support

Proprietary

Spring Framework 7.0 removed HandlerAdapter#getLastModified, AbstractHandlerMethodAdapter#getLastModifiedInternal and the LastModified interface, and DispatcherServlet no longer calls them. Overrides that only return -1 and are not called elsewhere are removed. Other overrides are kept without @Override and marked for a manual migration to WebRequest#checkNotModified, as their last-modified handling no longer takes effect. Calls to the removed Spring methods are marked, and implements LastModified is removed.

io.moderne.java.spring.framework7.MigrateLastModifiedSupport
mod run . --recipe=io.moderne.java.spring.framework7.MigrateLastModifiedSupport

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Remove interface implementations org.springframework.web.servlet.mvc.LastModified