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