From 4af7a6863b8c07e936cbf3db59dcffe4dbea4294 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Fri, 26 Feb 2021 17:49:10 +0100 Subject: [PATCH] Polishing --- .../java/org/springframework/http/ResponseEntity.java | 10 +++++----- .../support/WebSocketUpgradeHandlerPredicate.java | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/ResponseEntity.java b/spring-web/src/main/java/org/springframework/http/ResponseEntity.java index 5ef8b45e5ef..bbdb685d67d 100644 --- a/spring-web/src/main/java/org/springframework/http/ResponseEntity.java +++ b/spring-web/src/main/java/org/springframework/http/ResponseEntity.java @@ -82,7 +82,7 @@ public class ResponseEntity extends HttpEntity { /** - * Create an {@code ResponseEntity} with a status code only. + * Create a {@code ResponseEntity} with a status code only. * @param status the status code */ public ResponseEntity(HttpStatus status) { @@ -90,7 +90,7 @@ public class ResponseEntity extends HttpEntity { } /** - * Create an {@code ResponseEntity} with a body and status code. + * Create a {@code ResponseEntity} with a body and status code. * @param body the entity body * @param status the status code */ @@ -99,7 +99,7 @@ public class ResponseEntity extends HttpEntity { } /** - * Create an {@code HttpEntity} with headers and a status code. + * Create a {@code ResponseEntity} with headers and a status code. * @param headers the entity headers * @param status the status code */ @@ -108,7 +108,7 @@ public class ResponseEntity extends HttpEntity { } /** - * Create an {@code HttpEntity} with a body, headers, and a status code. + * Create a {@code ResponseEntity} with a body, headers, and a status code. * @param body the entity body * @param headers the entity headers * @param status the status code @@ -118,7 +118,7 @@ public class ResponseEntity extends HttpEntity { } /** - * Create an {@code HttpEntity} with a body, headers, and a raw status code. + * Create a {@code ResponseEntity} with a body, headers, and a raw status code. * @param body the entity body * @param headers the entity headers * @param rawStatus the status code value diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/support/WebSocketUpgradeHandlerPredicate.java b/spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/support/WebSocketUpgradeHandlerPredicate.java index c89312246de..0ee33929ab1 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/support/WebSocketUpgradeHandlerPredicate.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/support/WebSocketUpgradeHandlerPredicate.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.web.reactive.socket.server.support; import java.util.function.BiPredicate; @@ -22,16 +23,15 @@ import org.springframework.web.server.ServerWebExchange; /** * A predicate for use with - * {@link org.springframework.web.reactive.handler.AbstractUrlHandlerMapping#setHandlerPredicate(BiPredicate)} - * to ensure only WebSocket handshake requests are matched to handlers of - * type {@link WebSocketHandler}. + * {@link org.springframework.web.reactive.handler.AbstractUrlHandlerMapping#setHandlerPredicate} + * to ensure only WebSocket handshake requests are matched to handlers of type + * {@link WebSocketHandler}. * * @author Rossen Stoyanchev * @since 5.3.5 */ public class WebSocketUpgradeHandlerPredicate implements BiPredicate { - @Override public boolean test(Object handler, ServerWebExchange exchange) { if (handler instanceof WebSocketHandler) {