Merge branch '7.0.x'

This commit is contained in:
Brian Clozel
2026-08-31 12:58:00 +02:00
17 changed files with 20 additions and 18 deletions
@@ -487,12 +487,12 @@ class DefaultWebTestClient implements WebTestClient {
}
@Override
public <E> ListBodySpec<E> expectBodyList(Class<E> elementType) {
public <E extends @Nullable Object> ListBodySpec<E> expectBodyList(Class<E> elementType) {
return getListBodySpec(this.response.bodyToFlux(elementType));
}
@Override
public <E> ListBodySpec<E> expectBodyList(ParameterizedTypeReference<E> elementType) {
public <E extends @Nullable Object> ListBodySpec<E> expectBodyList(ParameterizedTypeReference<E> elementType) {
Flux<E> flux = this.response.bodyToFlux(elementType);
return getListBodySpec(flux);
}