Skip to content

Commit 9cd9a8e

Browse files
committed
Extend readOnlyWebSocketHttpHeaders deprecation to 5.1.16
1 parent 7b7d0a3 commit 9cd9a8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/WebSocketHttpHeaders.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.springframework.http.HttpHeaders;
2727
import org.springframework.lang.Nullable;
2828
import org.springframework.util.CollectionUtils;
29-
import org.springframework.util.MultiValueMap;
3029

3130
/**
3231
* An {@link org.springframework.http.HttpHeaders} variant that adds support for
@@ -71,7 +70,8 @@ public WebSocketHttpHeaders(HttpHeaders headers) {
7170

7271
/**
7372
* Returns {@code WebSocketHttpHeaders} object that can only be read, not written to.
74-
* @deprecated as of 5.2.7 in favor of {@link HttpHeaders#readOnlyHttpHeaders(MultiValueMap)}
73+
* @deprecated as of 5.1.16, in favor of calling {@link #WebSocketHttpHeaders(HttpHeaders)}
74+
* with a read-only wrapper from {@link HttpHeaders#readOnlyHttpHeaders(HttpHeaders)}
7575
*/
7676
@Deprecated
7777
public static WebSocketHttpHeaders readOnlyWebSocketHttpHeaders(WebSocketHttpHeaders headers) {

0 commit comments

Comments
 (0)