Merge branch '7.0.x'

This commit is contained in:
Sam Brannen
2026-10-01 12:16:06 +02:00
2 changed files with 3 additions and 3 deletions
@@ -137,7 +137,7 @@ public class XmlEventDecoder extends AbstractDecoder<XMLEvent> {
if (this.useAalto) {
AaltoDataBufferToXmlEvent mapper = new AaltoDataBufferToXmlEvent(hints);
return Flux.from(input)
.flatMapIterable(mapper)
.<XMLEvent>flatMapIterable(mapper)
.doFinally(signalType -> mapper.endOfInput());
}
else {
@@ -681,14 +681,14 @@ final class DefaultWebClient implements WebClient {
}
private <T> Publisher<T> handleBodyFlux(ClientResponse response, Flux<T> body) {
body = body.onErrorResume(WebClientUtils.WRAP_EXCEPTION_PREDICATE, exceptionWrappingFunction(response));
body = body.onErrorResume(WebClientUtils.WRAP_EXCEPTION_PREDICATE, this.<T>exceptionWrappingFunction(response));
Mono<T> result = applyStatusHandlers(response);
return (result != null ? result.flux().switchIfEmpty(body) : body);
}
private <T> Mono<? extends ResponseEntity<Flux<T>>> handlerEntityFlux(ClientResponse response, Flux<T> body) {
ResponseEntity<Flux<T>> entity = new ResponseEntity<>(
body.onErrorResume(WebClientUtils.WRAP_EXCEPTION_PREDICATE, exceptionWrappingFunction(response)),
body.onErrorResume(WebClientUtils.WRAP_EXCEPTION_PREDICATE, this.<T>exceptionWrappingFunction(response)),
response.headers().asHttpHeaders(),
response.statusCode());