Skip to content

Commit

Permalink
Make utility methods consistently static in DispatcherServlet
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Sep 16, 2023
1 parent d30ad79 commit 7bf520f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ else if (hasMultipartException(request)) {
/**
* 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);
while (error != null) {
if (error instanceof MultipartException) {
Expand Down Expand Up @@ -1478,7 +1478,7 @@ protected View resolveViewName(String viewName, @Nullable Map<String, Object> mo
return null;
}

private void triggerAfterCompletion(HttpServletRequest request, HttpServletResponse response,
private static void triggerAfterCompletion(HttpServletRequest request, HttpServletResponse response,
@Nullable HandlerExecutionChain mappedHandler, Exception ex) throws Exception {

if (mappedHandler != null) {
Expand Down

0 comments on commit 7bf520f

Please sign in to comment.