Skip to content

Commit

Permalink
Merge pull request #1669 from igor-suhorukov
Browse files Browse the repository at this point in the history
* pr/1669:
  Polish
  • Loading branch information
snicoll committed Feb 9, 2018
2 parents fb61af1 + 4c888d0 commit 7da40ab
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static <T> Comparator<T> nullsLow() {
* @see NullSafeComparator#NullSafeComparator(boolean)
*/
public static <T> Comparator<T> nullsLow(Comparator<T> comparator) {
return new NullSafeComparator<T>(comparator, false);
return new NullSafeComparator<>(comparator, false);
}

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -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>());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public ReactorNettyTcpStompClient() {
* @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());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public Builder<T> data(@Nullable T data) {

@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);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public Mono<Void> handleResult(ServerWebExchange exchange, HandlerResult result)
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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ protected SimpleUrlHandlerMapping buildHandlerMapping() {
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());
}
Expand Down

0 comments on commit 7da40ab

Please sign in to comment.