From 8855056395a3603ea7c8e50684714f2caad63827 Mon Sep 17 00:00:00 2001 From: wonwoo Date: Mon, 4 Nov 2019 12:55:27 +0900 Subject: [PATCH] Polish --- .../web/reactive/function/client/WebClientUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClientUtils.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClientUtils.java index 89d4b400eb..f6494f1544 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClientUtils.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClientUtils.java @@ -38,7 +38,7 @@ abstract class WebClientUtils { /** * Create a delayed {@link ResponseEntity} from the given response and body. */ - public static Mono> toEntity(ClientResponse response, Mono bodyMono) { + public static Mono> toEntity(ClientResponse response, Mono bodyMono) { return Mono.defer(() -> { HttpHeaders headers = response.headers().asHttpHeaders(); int status = response.rawStatusCode(); @@ -61,7 +61,7 @@ abstract class WebClientUtils { }); } - public static ResponseEntity createEntity(@Nullable T body, HttpHeaders headers, int status) { + public static ResponseEntity createEntity(@Nullable T body, HttpHeaders headers, int status) { HttpStatus resolvedStatus = HttpStatus.resolve(status); return resolvedStatus != null ? new ResponseEntity<>(body, headers, resolvedStatus)