Skip to content

Commit 7281d44

Browse files
committed
Polishing
1 parent f965c2f commit 7281d44

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

spring-web/src/main/java/org/springframework/http/RequestEntity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -65,6 +65,8 @@
6565
* @param <T> the body type
6666
* @see #getMethod()
6767
* @see #getUrl()
68+
* @see org.springframework.web.client.RestOperations#exchange(RequestEntity, Class)
69+
* @see ResponseEntity
6870
*/
6971
public class RequestEntity<T> extends HttpEntity<T> {
7072

spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -398,7 +398,7 @@ public HttpHeaders getHeaders() {
398398

399399
private static class DefaultResponseSpec implements ResponseSpec {
400400

401-
private static final IntPredicate STATUS_CODE_ERROR = value -> value >= 400;
401+
private static final IntPredicate STATUS_CODE_ERROR = (value -> value >= 400);
402402

403403
private static final StatusHandler DEFAULT_STATUS_HANDLER =
404404
new StatusHandler(STATUS_CODE_ERROR, DefaultResponseSpec::createResponseException);
@@ -418,6 +418,7 @@ private static class DefaultResponseSpec implements ResponseSpec {
418418
@Override
419419
public ResponseSpec onStatus(Predicate<HttpStatus> statusPredicate,
420420
Function<ClientResponse, Mono<? extends Throwable>> exceptionFunction) {
421+
421422
return onRawStatus(toIntPredicate(statusPredicate), exceptionFunction);
422423
}
423424

0 commit comments

Comments
 (0)