Make utility methods consistently static in DispatcherServlet
See gh-31244
This commit is contained in:
parent
d30ad794ab
commit
7bf520fa8d
|
|
@ -1244,7 +1244,7 @@ public class DispatcherServlet extends FrameworkServlet {
|
||||||
/**
|
/**
|
||||||
* Check "jakarta.servlet.error.exception" attribute for a multipart exception.
|
* Check "jakarta.servlet.error.exception" attribute for a multipart exception.
|
||||||
*/
|
*/
|
||||||
private boolean hasMultipartException(HttpServletRequest request) {
|
private static boolean hasMultipartException(HttpServletRequest request) {
|
||||||
Throwable error = (Throwable) request.getAttribute(WebUtils.ERROR_EXCEPTION_ATTRIBUTE);
|
Throwable error = (Throwable) request.getAttribute(WebUtils.ERROR_EXCEPTION_ATTRIBUTE);
|
||||||
while (error != null) {
|
while (error != null) {
|
||||||
if (error instanceof MultipartException) {
|
if (error instanceof MultipartException) {
|
||||||
|
|
@ -1478,7 +1478,7 @@ public class DispatcherServlet extends FrameworkServlet {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void triggerAfterCompletion(HttpServletRequest request, HttpServletResponse response,
|
private static void triggerAfterCompletion(HttpServletRequest request, HttpServletResponse response,
|
||||||
@Nullable HandlerExecutionChain mappedHandler, Exception ex) throws Exception {
|
@Nullable HandlerExecutionChain mappedHandler, Exception ex) throws Exception {
|
||||||
|
|
||||||
if (mappedHandler != null) {
|
if (mappedHandler != null) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue