From 9cd9a8e86b459c5af647b9565e55ff43b1a0b6d8 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Sat, 6 Jun 2020 14:41:06 +0200 Subject: [PATCH] Extend readOnlyWebSocketHttpHeaders deprecation to 5.1.16 --- .../org/springframework/web/socket/WebSocketHttpHeaders.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/WebSocketHttpHeaders.java b/spring-websocket/src/main/java/org/springframework/web/socket/WebSocketHttpHeaders.java index e9854355698..84a3503bfc9 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/WebSocketHttpHeaders.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/WebSocketHttpHeaders.java @@ -26,7 +26,6 @@ import java.util.Set; import org.springframework.http.HttpHeaders; import org.springframework.lang.Nullable; import org.springframework.util.CollectionUtils; -import org.springframework.util.MultiValueMap; /** * An {@link org.springframework.http.HttpHeaders} variant that adds support for @@ -71,7 +70,8 @@ public class WebSocketHttpHeaders extends HttpHeaders { /** * Returns {@code WebSocketHttpHeaders} object that can only be read, not written to. - * @deprecated as of 5.2.7 in favor of {@link HttpHeaders#readOnlyHttpHeaders(MultiValueMap)} + * @deprecated as of 5.1.16, in favor of calling {@link #WebSocketHttpHeaders(HttpHeaders)} + * with a read-only wrapper from {@link HttpHeaders#readOnlyHttpHeaders(HttpHeaders)} */ @Deprecated public static WebSocketHttpHeaders readOnlyWebSocketHttpHeaders(WebSocketHttpHeaders headers) {