Browse Source

Extend readOnlyWebSocketHttpHeaders deprecation to 5.1.16

pull/25758/head
Juergen Hoeller 6 years ago
parent
commit
9cd9a8e86b
  1. 4
      spring-websocket/src/main/java/org/springframework/web/socket/WebSocketHttpHeaders.java

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

@ -26,7 +26,6 @@ import java.util.Set; @@ -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 { @@ -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) {

Loading…
Cancel
Save