Use the diamond syntax
Closes gh-1450
This commit is contained in:
@@ -424,7 +424,7 @@ public abstract class AbstractMethodMessageHandler<T>
|
||||
}
|
||||
|
||||
protected void handleMessageInternal(Message<?> message, String lookupDestination) {
|
||||
List<Match> matches = new ArrayList<Match>();
|
||||
List<Match> matches = new ArrayList<>();
|
||||
|
||||
List<T> mappingsByUrl = this.destinationLookup.get(lookupDestination);
|
||||
if (mappingsByUrl != null) {
|
||||
|
||||
@@ -51,7 +51,7 @@ public class BufferingStompDecoder {
|
||||
|
||||
private final int bufferSizeLimit;
|
||||
|
||||
private final Queue<ByteBuffer> chunks = new LinkedBlockingQueue<ByteBuffer>();
|
||||
private final Queue<ByteBuffer> chunks = new LinkedBlockingQueue<>();
|
||||
|
||||
private volatile Integer expectedContentLength;
|
||||
|
||||
@@ -107,7 +107,7 @@ public class BufferingStompDecoder {
|
||||
}
|
||||
|
||||
ByteBuffer bufferToDecode = assembleChunksAndReset();
|
||||
MultiValueMap<String, String> headers = new LinkedMultiValueMap<String, String>();
|
||||
MultiValueMap<String, String> headers = new LinkedMultiValueMap<>();
|
||||
List<Message<byte[]>> messages = this.stompDecoder.decode(bufferToDecode, headers);
|
||||
|
||||
if (bufferToDecode.hasRemaining()) {
|
||||
|
||||
Reference in New Issue
Block a user