@@ -456,13 +456,13 @@ public ResponseSpec onRawStatus(IntPredicate statusCodePredicate,
456456
457457 @ Override
458458 public <T > Mono <T > bodyToMono (Class <T > elementClass ) {
459- Assert .notNull (elementClass , "ElementClass must not be null" );
459+ Assert .notNull (elementClass , "Class must not be null" );
460460 return this .responseMono .flatMap (response -> handleBodyMono (response , response .bodyToMono (elementClass )));
461461 }
462462
463463 @ Override
464464 public <T > Mono <T > bodyToMono (ParameterizedTypeReference <T > elementTypeRef ) {
465- Assert .notNull (elementTypeRef , "ElementTypeRef must not be null" );
465+ Assert .notNull (elementTypeRef , "ParameterizedTypeReference must not be null" );
466466 return this .responseMono .flatMap (response -> handleBodyMono (response , response .bodyToMono (elementTypeRef )));
467467 }
468468
@@ -478,13 +478,13 @@ private <T> Mono<T> handleBodyMono(ClientResponse response, Mono<T> bodyPublishe
478478
479479 @ Override
480480 public <T > Flux <T > bodyToFlux (Class <T > elementClass ) {
481- Assert .notNull (elementClass , "ElementClass must not be null" );
481+ Assert .notNull (elementClass , "Class must not be null" );
482482 return this .responseMono .flatMapMany (response -> handleBodyFlux (response , response .bodyToFlux (elementClass )));
483483 }
484484
485485 @ Override
486486 public <T > Flux <T > bodyToFlux (ParameterizedTypeReference <T > elementTypeRef ) {
487- Assert .notNull (elementTypeRef , "ElementTypeRef must not be null" );
487+ Assert .notNull (elementTypeRef , "ParameterizedTypeReference must not be null" );
488488 return this .responseMono .flatMapMany (response -> handleBodyFlux (response , response .bodyToFlux (elementTypeRef )));
489489 }
490490
0 commit comments