Align with Framework's deprecation of getLastModified

See gh-27160
This commit is contained in:
Andy Wilkinson 2021-07-13 13:12:45 +01:00
parent 2354dd5ccb
commit 1341ca99db
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ class CompositeHandlerAdapter implements HandlerAdapter {
}
@Override
@Deprecated
public long getLastModified(HttpServletRequest request, Object handler) {
Optional<HandlerAdapter> adapter = getAdapter(handler);
return adapter.map((handlerAdapter) -> handlerAdapter.getLastModified(request, handler)).orElse(0L);