Replace explicit type arguments with diamond operator

This commit is contained in:
Vedran Pavic
2017-03-04 08:12:11 +01:00
committed by Rob Winch
parent 78ea101a43
commit 5b4d0c40d8
36 changed files with 91 additions and 94 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2016 the original author or authors.
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,13 +38,13 @@ public class WebSocketHandlersConfig<S extends ExpiringSession> {
public WebSocketConnectHandler<S> webSocketConnectHandler(
SimpMessageSendingOperations messagingTemplate,
ActiveWebSocketUserRepository repository) {
return new WebSocketConnectHandler<S>(messagingTemplate, repository);
return new WebSocketConnectHandler<>(messagingTemplate, repository);
}
@Bean
public WebSocketDisconnectHandler<S> webSocketDisconnectHandler(
SimpMessageSendingOperations messagingTemplate,
ActiveWebSocketUserRepository repository) {
return new WebSocketDisconnectHandler<S>(messagingTemplate, repository);
return new WebSocketDisconnectHandler<>(messagingTemplate, repository);
}
}