Skip to content

Commit 737b939

Browse files
committed
Resolve deprecations in WebFlux module
1 parent 24348a1 commit 737b939

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-integration-webflux/src/main/java/org/springframework/integration/webflux/outbound/WebFluxRequestExecutingMessageHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ else if (publisherElementType instanceof ParameterizedTypeReference<?>) {
340340

341341
@Nullable
342342
@SuppressWarnings("unchecked")
343-
private BodyInserters.FormInserter<?> buildBodyInserterForMultiValueMap(
343+
private static BodyInserters.FormInserter<?> buildBodyInserterForMultiValueMap(
344344
MultiValueMap<?, ?> requestBody, MediaType contentType) {
345345

346346
if (MediaType.APPLICATION_FORM_URLENCODED.equals(contentType)) {

spring-integration-webflux/src/test/java/org/springframework/integration/webflux/dsl/WebFluxDslTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public void testValidation() {
313313
this.webTestClient.post().uri("/validation")
314314
.headers(headers -> headers.setBasicAuth("guest", "guest"))
315315
.contentType(MediaType.APPLICATION_JSON)
316-
.syncBody("{\"name\": \"\"}")
316+
.body("{\"name\": \"\"}")
317317
.exchange()
318318
.expectStatus().isBadRequest();
319319

0 commit comments

Comments
 (0)