Polishing

This commit is contained in:
Juergen Hoeller 2017-11-13 22:39:39 +01:00
parent 3e5209bea5
commit 7406f5993a
3 changed files with 6 additions and 7 deletions

View File

@ -59,8 +59,7 @@ public class WebMvcStompEndpointRegistry implements StompEndpointRegistry {
private final StompSubProtocolHandler stompHandler;
private final List<WebMvcStompWebSocketEndpointRegistration> registrations =
new ArrayList<>();
private final List<WebMvcStompWebSocketEndpointRegistration> registrations = new ArrayList<>();
public WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler,

View File

@ -96,7 +96,7 @@ public class WebSocketConfigurationSupport {
this.scheduler = new NoOpScheduler();
}
}
return scheduler;
return this.scheduler;
}

View File

@ -56,8 +56,8 @@ public abstract class WebSocketMessageBrokerConfigurationSupport extends Abstrac
@Override
protected SimpAnnotationMethodMessageHandler createAnnotationMethodMessageHandler() {
return new WebSocketAnnotationMethodMessageHandler(clientInboundChannel(),
clientOutboundChannel(), brokerMessagingTemplate());
return new WebSocketAnnotationMethodMessageHandler(
clientInboundChannel(), clientOutboundChannel(), brokerMessagingTemplate());
}
@Override
@ -68,8 +68,8 @@ public abstract class WebSocketMessageBrokerConfigurationSupport extends Abstrac
@Bean
public HandlerMapping stompWebSocketHandlerMapping() {
WebSocketHandler handler = decorateWebSocketHandler(subProtocolWebSocketHandler());
WebMvcStompEndpointRegistry registry = new WebMvcStompEndpointRegistry(handler,
getTransportRegistration(), messageBrokerTaskScheduler());
WebMvcStompEndpointRegistry registry = new WebMvcStompEndpointRegistry(
handler, getTransportRegistration(), messageBrokerTaskScheduler());
ApplicationContext applicationContext = getApplicationContext();
if (applicationContext != null) {
registry.setApplicationContext(applicationContext);