Skip to content

Commit 834d22f

Browse files
committed
Polishing
1 parent 2a77665 commit 834d22f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -43,12 +43,11 @@ public interface ExchangeFunction {
4343

4444
/**
4545
* Exchange the given request for a {@link ClientResponse} promise.
46-
*
4746
* <p><strong>Note:</strong> When calling this method from an
4847
* {@link ExchangeFilterFunction} that handles the response in some way,
4948
* extra care must be taken to always consume its content or otherwise
5049
* propagate it downstream for further handling, for example by the
51-
* {@link WebClient}. Please, see the reference documentation for more
50+
* {@link WebClient}. Please see the reference documentation for more
5251
* details on this.
5352
* @param request the request to exchange
5453
* @return the delayed response

spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/client/CoExchangeFilterFunction.kt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import kotlinx.coroutines.reactor.mono
2222
import reactor.core.publisher.Mono
2323

2424
/**
25-
* Kotlin-specific implementation of the [ExchangeFilterFunction] interface that allows for
26-
* using coroutines.
25+
* Kotlin-specific implementation of the [ExchangeFilterFunction] interface
26+
* that allows for using coroutines.
2727
*
2828
* @author Sebastien Deleuze
29-
* @since 6.1.0
29+
* @since 6.1
3030
*/
3131
abstract class CoExchangeFilterFunction : ExchangeFilterFunction {
3232

@@ -48,8 +48,8 @@ abstract class CoExchangeFilterFunction : ExchangeFilterFunction {
4848
* proceed with the exchange, or not invoked to short-circuit the chain.
4949
*
5050
* **Note:** When a filter handles the response after the
51-
* call to [CoExchangeFunction.exchange], extra care must be taken
52-
* to always consume its content or otherwise propagate it downstream for
51+
* call to [CoExchangeFunction.exchange], extra care must be taken to
52+
* always consume its content or otherwise propagate it downstream for
5353
* further handling, for example by the [WebClient]. Please see the
5454
* reference documentation for more details on this.
5555
*
@@ -60,11 +60,12 @@ abstract class CoExchangeFilterFunction : ExchangeFilterFunction {
6060
protected abstract suspend fun filter(request: ClientRequest, next: CoExchangeFunction): ClientResponse
6161
}
6262

63+
6364
/**
6465
* Kotlin-specific adaption of [ExchangeFunction] that allows for coroutines.
6566
*
6667
* @author Sebastien Deleuze
67-
* @since 6.1.0
68+
* @since 6.1
6869
*/
6970
interface CoExchangeFunction {
7071

@@ -75,7 +76,7 @@ interface CoExchangeFunction {
7576
* [CoExchangeFilterFunction] that handles the response in some way,
7677
* extra care must be taken to always consume its content or otherwise
7778
* propagate it downstream for further handling, for example by the
78-
* [WebClient]. Please, see the reference documentation for more
79+
* [WebClient]. Please see the reference documentation for more
7980
* details on this.
8081
*
8182
* @param request the request to exchange

0 commit comments

Comments
 (0)