parent
fb61af1882
commit
4c888d0f32
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue