Polishing (aligned with main)

This commit is contained in:
Juergen Hoeller
2026-02-17 19:08:15 +01:00
parent 999bbe3959
commit c8735efb9d
2 changed files with 3 additions and 2 deletions
@@ -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));
}
@@ -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;