diff --git a/spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java b/spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java index 77aa24f7c6..414b657bf6 100644 --- a/spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java +++ b/spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java @@ -656,11 +656,11 @@ public interface WebTestClient { /** * Set an API version for the request. The version is inserted into the - * request by the {@link Builder#apiVersionInserter(ApiVersionInserter) + * request by the {@linkplain Builder#apiVersionInserter(ApiVersionInserter) * configured} {@code ApiVersionInserter}. * @param version the API version of the request; this can be a String or - * some Object that can be formatted the inserter, e.g. through an - * {@link ApiVersionFormatter}. + * some Object that can be formatted by the inserter — for example, + * through an {@link ApiVersionFormatter} * @since 7.0 */ S apiVersion(Object version); diff --git a/spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/ApiVersionTests.java b/spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/ApiVersionTests.java index fa9337d9ef..f1454f0ef6 100644 --- a/spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/ApiVersionTests.java +++ b/spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/ApiVersionTests.java @@ -62,7 +62,7 @@ public class ApiVersionTests { private Map performRequest(Consumer consumer) { DefaultApiVersionInserter.Builder builder = DefaultApiVersionInserter.builder(); consumer.accept(builder); - return (Map) WebTestClient.bindToController(new TestController()) + return WebTestClient.bindToController(new TestController()) .configureClient() .baseUrl("/path") .apiVersionInserter(builder.build()) diff --git a/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceProxyRegistry.java b/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceProxyRegistry.java index 712a7f35a5..fcc121871b 100644 --- a/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceProxyRegistry.java +++ b/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceProxyRegistry.java @@ -36,8 +36,7 @@ public interface HttpServiceProxyRegistry { * @return the proxy, or {@code null} if not found * @param

the type of HTTP Interface client proxy * @throws IllegalArgumentException if there is no client proxy of the given - * type, or there is more than one client proxy of the given type. - * given type exists across groups + * type, or there is more than one client proxy of the given type */

P getClient(Class

httpServiceType); @@ -47,7 +46,7 @@ public interface HttpServiceProxyRegistry { * @param httpServiceType the type of client proxy * @return the proxy, or {@code null} if not found * @throws IllegalArgumentException if there is no group with the given - * name, or no client proxy of the given type in the group. + * name, or no client proxy of the given type in the group * @param

the type of HTTP Interface client proxy */

P getClient(String groupName, Class

httpServiceType); @@ -61,7 +60,7 @@ public interface HttpServiceProxyRegistry { * Return the HTTP service types for all client proxies in the given group. * @param groupName the name of the group * @return the HTTP service types - * @throws IllegalArgumentException if there is no group with the given name. + * @throws IllegalArgumentException if there is no group with the given name */ Set> getClientTypesInGroup(String groupName);