Closes gh-1669
This commit is contained in:
igor-suhorukov 2018-02-09 00:07:43 +03:00 committed by Stephane Nicoll
parent fb61af1882
commit 4c888d0f32
6 changed files with 7 additions and 7 deletions

View File

@ -52,7 +52,7 @@ public abstract class Comparators {
* @see NullSafeComparator#NullSafeComparator(boolean)
*/
public static <T> Comparator<T> nullsLow(Comparator<T> comparator) {
return new NullSafeComparator<T>(comparator, false);
return new NullSafeComparator<>(comparator, false);
}
/**
@ -71,7 +71,7 @@ public abstract class Comparators {
* @see NullSafeComparator#NullSafeComparator(boolean)
*/
public static <T> Comparator<T> nullsHigh(Comparator<T> comparator) {
return new NullSafeComparator<T>(comparator, false);
return new NullSafeComparator<>(comparator, false);
}
}

View File

@ -97,7 +97,7 @@ public class CodeFlow implements Opcodes {
public CodeFlow(String className, ClassWriter classWriter) {
this.className = className;
this.classWriter = classWriter;
this.compilationScopes = new Stack<ArrayList<String>>();
this.compilationScopes = new Stack<>();
this.compilationScopes.add(new ArrayList<String>());
}

View File

@ -46,7 +46,7 @@ public class ReactorNettyTcpStompClient extends StompClientSupport {
* @param port the port
*/
public ReactorNettyTcpStompClient(String host, int port) {
this.tcpClient = new ReactorNettyTcpClient<byte[]>(host, port, new StompReactorNettyCodec());
this.tcpClient = new ReactorNettyTcpClient<>(host, port, new StompReactorNettyCodec());
}
/**

View File

@ -239,7 +239,7 @@ public class ServerSentEvent<T> {
@Override
public ServerSentEvent<T> build() {
return new ServerSentEvent<T>(this.id, this.event, this.retry, this.comment, this.data);
return new ServerSentEvent<>(this.id, this.event, this.retry, this.comment, this.data);
}
}

View File

@ -133,7 +133,7 @@ public class ResponseEntityResultHandler extends AbstractMessageWriterResultHand
httpEntity = (HttpEntity<?>) returnValue;
}
else if (returnValue instanceof HttpHeaders) {
httpEntity = new ResponseEntity<Void>((HttpHeaders) returnValue, HttpStatus.OK);
httpEntity = new ResponseEntity<>((HttpHeaders) returnValue, HttpStatus.OK);
}
else {
throw new IllegalArgumentException(

View File

@ -117,7 +117,7 @@ public class ViewControllerRegistry {
return null;
}
Map<String, Object> urlMap = new LinkedHashMap<String, Object>();
Map<String, Object> urlMap = new LinkedHashMap<>();
for (ViewControllerRegistration registration : this.registrations) {
urlMap.put(registration.getUrlPath(), registration.getViewController());
}