From 7ecfce2386016803742e580fe246a3084d17a813 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Fri, 11 Feb 2022 11:04:35 +0000 Subject: [PATCH] Polishing contribution See gh-27948 --- .../support/MissingServletRequestPartException.java | 13 +++++-------- .../annotation/ResponseEntityExceptionHandler.java | 1 - .../support/DefaultHandlerExceptionResolver.java | 1 - 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/multipart/support/MissingServletRequestPartException.java b/spring-web/src/main/java/org/springframework/web/multipart/support/MissingServletRequestPartException.java index 539ec6a5ea..93f332fabf 100644 --- a/spring-web/src/main/java/org/springframework/web/multipart/support/MissingServletRequestPartException.java +++ b/spring-web/src/main/java/org/springframework/web/multipart/support/MissingServletRequestPartException.java @@ -20,16 +20,13 @@ import org.springframework.web.bind.ServletRequestBindingException; import org.springframework.web.multipart.MultipartResolver; /** - * Raised when the part of a "multipart/form-data" request identified by its - * name cannot be found. - * - *

This may be because the request is not a multipart/form-data request, - * because the part is not present in the request, or because the web - * application is not configured correctly for processing multipart requests, - * e.g. no {@link MultipartResolver}. + * Signals the part of a "multipart/form-data" request, identified by name + * could not be found. This may be because the request is not a multipart + * request, or a part with that name is not present, or because the application + * is not configured correctly for processing multipart requests, e.g. there + * is no {@link MultipartResolver}. * * @author Rossen Stoyanchev - * @author Wonchul Heo * @since 3.1 */ @SuppressWarnings("serial") diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java index 6c9e70c8e4..6252e7cf25 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java @@ -73,7 +73,6 @@ import org.springframework.web.util.WebUtils; * detected, {@link ExceptionHandlerExceptionResolver} must be configured. * * @author Rossen Stoyanchev - * @author Wonchul Heo * @since 3.2 * @see #handleException(Exception, WebRequest) * @see org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java index 4aa1b2b664..6ee73d49ab 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java @@ -135,7 +135,6 @@ import org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver; * @author Arjen Poutsma * @author Rossen Stoyanchev * @author Juergen Hoeller - * @author Wonchul Heo * @since 3.0 * @see org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler */