mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
Merge branch '7.0.x'
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user