From 8848e6ab9fe42495b250f87e23bd73ff84a6fb9d Mon Sep 17 00:00:00 2001 From: Kyle Carter Date: Sun, 19 Aug 2018 20:27:25 -0600 Subject: [PATCH] Fix usage of deprecated functionality in docs Closes gh-1934 --- src/docs/asciidoc/web/websocket.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/asciidoc/web/websocket.adoc b/src/docs/asciidoc/web/websocket.adoc index 8f2fa6d929..76b53381b6 100644 --- a/src/docs/asciidoc/web/websocket.adoc +++ b/src/docs/asciidoc/web/websocket.adoc @@ -1804,7 +1804,7 @@ user and associate it with subsequent STOMP messages on the same session: @Override public void configureClientInboundChannel(ChannelRegistration registration) { - registration.setInterceptors(new ChannelInterceptorAdapter() { + registration.interceptors(new ChannelInterceptor() { @Override public Message preSend(Message message, MessageChannel channel) { StompHeaderAccessor accessor = @@ -2063,7 +2063,7 @@ For example to intercept inbound messages from clients: @Override public void configureClientInboundChannel(ChannelRegistration registration) { - registration.setInterceptors(new MyChannelInterceptor()); + registration.interceptors(new MyChannelInterceptor()); } } ----