Skip to content

Commit fcbc437

Browse files
committed
Polishing (follow-up on acfeb7)
1 parent 35b7f3b commit fcbc437

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClientBuilder.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ public WebTestClient.Builder filters(Consumer<List<ExchangeFilterFunction>> filt
137137
}
138138

139139
@Override
140-
@Deprecated
141140
public WebTestClient.Builder exchangeStrategies(ExchangeStrategies strategies) {
142141
this.webClientBuilder.exchangeStrategies(strategies);
143142
return this;

spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientBuilder.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,7 @@ public WebClient.Builder clientConnector(ClientHttpConnector connector) {
207207
}
208208

209209
@Override
210-
@Deprecated
211210
public WebClient.Builder exchangeStrategies(ExchangeStrategies strategies) {
212-
Assert.notNull(strategies, "ExchangeStrategies must not be null");
213211
this.strategies = strategies;
214212
return this;
215213
}
@@ -268,7 +266,6 @@ else if (jettyClientPresent) {
268266
throw new IllegalStateException("No suitable default ClientHttpConnector found");
269267
}
270268

271-
@SuppressWarnings("deprecation")
272269
private ExchangeStrategies initExchangeStrategies() {
273270
if (CollectionUtils.isEmpty(this.strategiesConfigurers)) {
274271
return this.strategies != null ? this.strategies : ExchangeStrategies.withDefaults();

0 commit comments

Comments
 (0)