提交 6710291b 编写于 作者: J Juergen Hoeller

Polishing

上级 d9c63182
......@@ -288,8 +288,8 @@ class DefaultWebClient implements WebClient {
}
@Override
public <T, P extends Publisher<T>> RequestHeadersSpec<?> body(P publisher,
ParameterizedTypeReference<T> typeReference) {
public <T, P extends Publisher<T>> RequestHeadersSpec<?> body(
P publisher, ParameterizedTypeReference<T> typeReference) {
this.inserter = BodyInserters.fromPublisher(publisher, typeReference);
return this;
......@@ -443,7 +443,6 @@ class DefaultWebClient implements WebClient {
}
private static Mono<WebClientResponseException> createResponseException(ClientResponse response) {
return DataBufferUtils.join(response.body(BodyExtractors.toDataBuffers()))
.map(dataBuffer -> {
byte[] bytes = new byte[dataBuffer.readableByteCount()];
......
......@@ -297,8 +297,8 @@ public abstract class RequestPredicates {
* @param name the name of the query parameter to test against
* @param value the value of the query parameter to test against
* @return a predicate that matches if the query parameter has the given value
* @see ServerRequest#queryParam(String)
* @since 5.0.7
* @see ServerRequest#queryParam(String)
*/
public static RequestPredicate queryParam(String name, String value) {
return queryParam(name, new Predicate<String>() {
......@@ -306,7 +306,6 @@ public abstract class RequestPredicates {
public boolean test(String s) {
return s.equals(value);
}
@Override
public String toString() {
return String.format("== %s", value);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册