Polishing (follow-up on acfeb7)
This commit is contained in:
parent
35b7f3bf34
commit
fcbc437825
|
|
@ -137,7 +137,6 @@ class DefaultWebTestClientBuilder implements WebTestClient.Builder {
|
|||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public WebTestClient.Builder exchangeStrategies(ExchangeStrategies strategies) {
|
||||
this.webClientBuilder.exchangeStrategies(strategies);
|
||||
return this;
|
||||
|
|
|
|||
|
|
@ -207,9 +207,7 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
|
|||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public WebClient.Builder exchangeStrategies(ExchangeStrategies strategies) {
|
||||
Assert.notNull(strategies, "ExchangeStrategies must not be null");
|
||||
this.strategies = strategies;
|
||||
return this;
|
||||
}
|
||||
|
|
@ -268,7 +266,6 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
|
|||
throw new IllegalStateException("No suitable default ClientHttpConnector found");
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private ExchangeStrategies initExchangeStrategies() {
|
||||
if (CollectionUtils.isEmpty(this.strategiesConfigurers)) {
|
||||
return this.strategies != null ? this.strategies : ExchangeStrategies.withDefaults();
|
||||
|
|
|
|||
Loading…
Reference in New Issue