File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
spring-webflux/src/main/java/org/springframework/web/reactive/function/client
spring-web/src/main/java/org/springframework/http Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
65
65
* @param <T> the body type
66
66
* @see #getMethod()
67
67
* @see #getUrl()
68
+ * @see org.springframework.web.client.RestOperations#exchange(RequestEntity, Class)
69
+ * @see ResponseEntity
68
70
*/
69
71
public class RequestEntity <T > extends HttpEntity <T > {
70
72
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2019 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -398,7 +398,7 @@ public HttpHeaders getHeaders() {
398
398
399
399
private static class DefaultResponseSpec implements ResponseSpec {
400
400
401
- private static final IntPredicate STATUS_CODE_ERROR = value -> value >= 400 ;
401
+ private static final IntPredicate STATUS_CODE_ERROR = ( value -> value >= 400 ) ;
402
402
403
403
private static final StatusHandler DEFAULT_STATUS_HANDLER =
404
404
new StatusHandler (STATUS_CODE_ERROR , DefaultResponseSpec ::createResponseException );
@@ -418,6 +418,7 @@ private static class DefaultResponseSpec implements ResponseSpec {
418
418
@ Override
419
419
public ResponseSpec onStatus (Predicate <HttpStatus > statusPredicate ,
420
420
Function <ClientResponse , Mono <? extends Throwable >> exceptionFunction ) {
421
+
421
422
return onRawStatus (toIntPredicate (statusPredicate ), exceptionFunction );
422
423
}
423
424
You can’t perform that action at this time.
0 commit comments