From e81862eed6438c1acf1ecaf6f6d554e31300fb56 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Tue, 24 Mar 2015 18:03:15 -0400 Subject: [PATCH] Allow modifying HandshakeInterceptor list The getter in TransportHandlingSockJsService now returns a mutable List. The immutable wrapper doesn't make sense since it's possible anyway to modify the list by creating a new list and calling the setter again. It's also consistent with the same field on WebSocketHttpRequestHandler. This is related to work for SPR-12845. --- .../socket/sockjs/transport/TransportHandlingSockJsService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java b/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java index c8050b519c..a033d7d611 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java @@ -146,7 +146,7 @@ public class TransportHandlingSockJsService extends AbstractSockJsService implem * Return the configured WebSocket handshake request interceptors. */ public List getHandshakeInterceptors() { - return Collections.unmodifiableList(this.interceptors); + return this.interceptors; }