Skip to content

Commit 5fb37e3

Browse files
committed
Polishing
1 parent aad742d commit 5fb37e3

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Diff for: spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -656,11 +656,11 @@ interface RequestHeadersSpec<S extends RequestHeadersSpec<S>> {
656656

657657
/**
658658
* Set an API version for the request. The version is inserted into the
659-
* request by the {@link Builder#apiVersionInserter(ApiVersionInserter)
659+
* request by the {@linkplain Builder#apiVersionInserter(ApiVersionInserter)
660660
* configured} {@code ApiVersionInserter}.
661661
* @param version the API version of the request; this can be a String or
662-
* some Object that can be formatted the inserter, e.g. through an
663-
* {@link ApiVersionFormatter}.
662+
* some Object that can be formatted by the inserter &mdash; for example,
663+
* through an {@link ApiVersionFormatter}
664664
* @since 7.0
665665
*/
666666
S apiVersion(Object version);

Diff for: spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/ApiVersionTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void pathSegment() {
6262
private Map<String, String> performRequest(Consumer<DefaultApiVersionInserter.Builder> consumer) {
6363
DefaultApiVersionInserter.Builder builder = DefaultApiVersionInserter.builder();
6464
consumer.accept(builder);
65-
return (Map<String, String>) WebTestClient.bindToController(new TestController())
65+
return WebTestClient.bindToController(new TestController())
6666
.configureClient()
6767
.baseUrl("/path")
6868
.apiVersionInserter(builder.build())

Diff for: spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceProxyRegistry.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ public interface HttpServiceProxyRegistry {
3636
* @return the proxy, or {@code null} if not found
3737
* @param <P> the type of HTTP Interface client proxy
3838
* @throws IllegalArgumentException if there is no client proxy of the given
39-
* type, or there is more than one client proxy of the given type.
40-
* given type exists across groups
39+
* type, or there is more than one client proxy of the given type
4140
*/
4241
<P> P getClient(Class<P> httpServiceType);
4342

@@ -47,7 +46,7 @@ public interface HttpServiceProxyRegistry {
4746
* @param httpServiceType the type of client proxy
4847
* @return the proxy, or {@code null} if not found
4948
* @throws IllegalArgumentException if there is no group with the given
50-
* name, or no client proxy of the given type in the group.
49+
* name, or no client proxy of the given type in the group
5150
* @param <P> the type of HTTP Interface client proxy
5251
*/
5352
<P> P getClient(String groupName, Class<P> httpServiceType);
@@ -61,7 +60,7 @@ public interface HttpServiceProxyRegistry {
6160
* Return the HTTP service types for all client proxies in the given group.
6261
* @param groupName the name of the group
6362
* @return the HTTP service types
64-
* @throws IllegalArgumentException if there is no group with the given name.
63+
* @throws IllegalArgumentException if there is no group with the given name
6564
*/
6665
Set<Class<?>> getClientTypesInGroup(String groupName);
6766

0 commit comments

Comments
 (0)