Update to spring-javaformat-checkstyle 0.0.7

Remove unnecessary lambdas to fix updated checkstyle
This commit is contained in:
Rob Winch
2019-03-22 00:35:32 -05:00
parent 62ea7382d7
commit bff3d2f2be
5 changed files with 11 additions and 13 deletions

View File

@@ -66,7 +66,7 @@ class JettyClientHttpResponse implements ClientHttpResponse {
MultiValueMap<String, ResponseCookie> result = new LinkedMultiValueMap<>();
List<String> cookieHeader = getHeaders().get(HttpHeaders.SET_COOKIE);
if (cookieHeader != null) {
cookieHeader.forEach(header -> {
cookieHeader.forEach(header ->
HttpCookie.parse(header)
.forEach(cookie -> result.add(cookie.getName(),
ResponseCookie.from(cookie.getName(), cookie.getValue())
@@ -75,8 +75,8 @@ class JettyClientHttpResponse implements ClientHttpResponse {
.maxAge(cookie.getMaxAge())
.secure(cookie.getSecure())
.httpOnly(cookie.isHttpOnly())
.build()));
});
.build()))
);
}
return CollectionUtils.unmodifiableMultiValueMap(result);
}

View File

@@ -66,13 +66,13 @@ class ReactorClientHttpResponse implements ClientHttpResponse {
throw new IllegalStateException("The client response body can only be consumed once.");
}
})
.doOnCancel(() -> {
.doOnCancel(() ->
// https://github.com/reactor/reactor-netty/issues/503
// FluxReceive rejects multiple subscribers, but not after a cancel().
// Subsequent subscribers after cancel() will not be rejected, but will hang instead.
// So we need to intercept and reject them in that case.
this.rejectSubscribers.set(true);
})
this.rejectSubscribers.set(true)
)
.map(byteBuf -> {
byteBuf.retain();
return this.bufferFactory.wrap(byteBuf);

View File

@@ -94,12 +94,12 @@ public class MultipartHttpMessageReader extends LoggingCodecSupport
return this.partReader.read(elementType, inputMessage, allHints)
.collectMultimap(Part::name)
.doOnNext(map -> {
.doOnNext(map ->
LogFormatUtils.traceDebug(logger, traceOn -> Hints.getLogPrefix(hints) + "Parsed " +
(isEnableLoggingRequestDetails() ?
LogFormatUtils.formatValue(map, !traceOn) :
"parts " + map.keySet() + " (content masked)"));
})
"parts " + map.keySet() + " (content masked)"))
)
.map(this::toMultiValueMap);
}