Browse Source

Polishing in ApiVersionResolver

pull/36125/head
rstoyanchev 3 weeks ago
parent
commit
2f91baa71c
  1. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/accept/ApiVersionResolver.java
  2. 4
      spring-webflux/src/main/java/org/springframework/web/reactive/accept/SyncApiVersionResolver.java

2
spring-webflux/src/main/java/org/springframework/web/reactive/accept/ApiVersionResolver.java

@ -33,8 +33,6 @@ public interface ApiVersionResolver {
/** /**
* Resolve the version for the given exchange. * Resolve the version for the given exchange.
* This method wraps the synchronous {@code resolveVersion} method
* and provides a reactive alternative.
* @param exchange the current exchange * @param exchange the current exchange
* @return {@code Mono} emitting the version value, or an empty {@code Mono} * @return {@code Mono} emitting the version value, or an empty {@code Mono}
* @since 7.0.3 * @since 7.0.3

4
spring-webflux/src/main/java/org/springframework/web/reactive/accept/SyncApiVersionResolver.java

@ -22,8 +22,8 @@ import reactor.core.publisher.Mono;
import org.springframework.web.server.ServerWebExchange; import org.springframework.web.server.ServerWebExchange;
/** /**
* An extension of {@link ApiVersionResolver}s for implementations that can * Extension of {@link ApiVersionResolver} for implementations that resolve the
* resolve the version in an imperative way without blocking. * version in an imperative way without blocking.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 7.0.3 * @since 7.0.3

Loading…
Cancel
Save