mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-11 10:09:04 +00:00
Polishing (aligned with main)
This commit is contained in:
+1
-2
@@ -59,8 +59,7 @@ abstract class AbstractServerResponse extends ErrorHandlingServerResponse {
|
||||
|
||||
this.statusCode = statusCode;
|
||||
this.headers = HttpHeaders.readOnlyHttpHeaders(headers);
|
||||
this.cookies =
|
||||
CollectionUtils.unmodifiableMultiValueMap(new LinkedMultiValueMap<>(cookies));
|
||||
this.cookies = CollectionUtils.unmodifiableMultiValueMap(new LinkedMultiValueMap<>(cookies));
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
@@ -34,6 +34,7 @@ import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
/**
|
||||
* Base class for {@link ServerResponse} implementations with error handling.
|
||||
*
|
||||
* @author Arjen Poutsma
|
||||
* @since 5.3
|
||||
*/
|
||||
@@ -83,6 +84,7 @@ abstract class ErrorHandlingServerResponse implements ServerResponse {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
private static class ErrorHandler<T extends ServerResponse> {
|
||||
|
||||
private final Predicate<Throwable> predicate;
|
||||
|
||||
Reference in New Issue
Block a user