Use the diamond syntax

Closes gh-1450
This commit is contained in:
diguage
2017-06-05 19:20:22 +08:00
committed by Stephane Nicoll
parent ca1e682dc4
commit c1d44d9a34
16 changed files with 23 additions and 24 deletions

View File

@@ -139,7 +139,7 @@ public class WebSocketExtension {
public static List<WebSocketExtension> parseExtensions(String extensions) {
if (StringUtils.hasText(extensions)) {
String[] tokens = StringUtils.tokenizeToStringArray(extensions, ",");
List<WebSocketExtension> result = new ArrayList<WebSocketExtension>(tokens.length);
List<WebSocketExtension> result = new ArrayList<>(tokens.length);
for (String token : tokens) {
result.add(parseExtension(token));
}

View File

@@ -102,7 +102,7 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
private MessageHeaderInitializer headerInitializer;
private final Map<String, Principal> stompAuthentications = new ConcurrentHashMap<String, Principal>();
private final Map<String, Principal> stompAuthentications = new ConcurrentHashMap<>();
private Boolean immutableMessageInterceptorPresent;