* | {@link org.springframework.http.HttpMethod HttpMethod} |
- * Dynamically set the HTTP method for the request, overriding the annotation
+ * | Dynamically set the HTTP method for the request, overriding the annotation's
* {@link #method()} attribute |
* {@link org.springframework.web.service.invoker.HttpMethodArgumentResolver
* HttpMethodArgumentResolver} |
diff --git a/spring-web/src/main/java/org/springframework/web/service/annotation/OptionsExchange.java b/spring-web/src/main/java/org/springframework/web/service/annotation/OptionsExchange.java
index 4753e30c58..fff8518d8e 100644
--- a/spring-web/src/main/java/org/springframework/web/service/annotation/OptionsExchange.java
+++ b/spring-web/src/main/java/org/springframework/web/service/annotation/OptionsExchange.java
@@ -24,7 +24,6 @@ import java.lang.annotation.Target;
import org.springframework.core.annotation.AliasFor;
-
/**
* Shortcut for {@link HttpExchange} for HTTP OPTIONS requests.
*
diff --git a/spring-web/src/main/java/org/springframework/web/service/annotation/PatchExchange.java b/spring-web/src/main/java/org/springframework/web/service/annotation/PatchExchange.java
index c26058745e..92d2bb9ee3 100644
--- a/spring-web/src/main/java/org/springframework/web/service/annotation/PatchExchange.java
+++ b/spring-web/src/main/java/org/springframework/web/service/annotation/PatchExchange.java
@@ -24,7 +24,6 @@ import java.lang.annotation.Target;
import org.springframework.core.annotation.AliasFor;
-
/**
* Shortcut for {@link HttpExchange} for HTTP PATCH requests.
*
diff --git a/spring-web/src/main/java/org/springframework/web/service/annotation/PostExchange.java b/spring-web/src/main/java/org/springframework/web/service/annotation/PostExchange.java
index 1f948e5309..68b09e6a01 100644
--- a/spring-web/src/main/java/org/springframework/web/service/annotation/PostExchange.java
+++ b/spring-web/src/main/java/org/springframework/web/service/annotation/PostExchange.java
@@ -24,7 +24,6 @@ import java.lang.annotation.Target;
import org.springframework.core.annotation.AliasFor;
-
/**
* Shortcut for {@link HttpExchange} for HTTP POST requests.
*
diff --git a/spring-web/src/main/java/org/springframework/web/service/annotation/PutExchange.java b/spring-web/src/main/java/org/springframework/web/service/annotation/PutExchange.java
index 9df4927eed..b5a741223d 100644
--- a/spring-web/src/main/java/org/springframework/web/service/annotation/PutExchange.java
+++ b/spring-web/src/main/java/org/springframework/web/service/annotation/PutExchange.java
@@ -24,7 +24,6 @@ import java.lang.annotation.Target;
import org.springframework.core.annotation.AliasFor;
-
/**
* Shortcut for {@link HttpExchange} for HTTP PUT requests.
*
diff --git a/spring-web/src/main/java/org/springframework/web/service/annotation/package-info.java b/spring-web/src/main/java/org/springframework/web/service/annotation/package-info.java
index 395dedcde5..c04c6fd761 100644
--- a/spring-web/src/main/java/org/springframework/web/service/annotation/package-info.java
+++ b/spring-web/src/main/java/org/springframework/web/service/annotation/package-info.java
@@ -1,5 +1,5 @@
/**
- * Annotations to declare HTTP service, request methods.
+ * Annotations for declaring HTTP service request methods.
*/
@NonNullApi
@NonNullFields
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/AbstractNamedValueArgumentResolver.java b/spring-web/src/main/java/org/springframework/web/service/invoker/AbstractNamedValueArgumentResolver.java
index baf50d0690..717fbcf4df 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/AbstractNamedValueArgumentResolver.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/AbstractNamedValueArgumentResolver.java
@@ -32,7 +32,6 @@ import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.ValueConstants;
-
/**
* Base class for arguments that resolve to a named request value such as a
* request header, path variable, cookie, and others.
@@ -52,7 +51,7 @@ public abstract class AbstractNamedValueArgumentResolver implements HttpServiceA
/**
* Create an instance.
* @param conversionService the {@link ConversionService} to use to format
- * Object to String values.
+ * Object to String values
*/
protected AbstractNamedValueArgumentResolver(ConversionService conversionService) {
Assert.notNull(conversionService, "ConversionService is required");
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/CookieValueArgumentResolver.java b/spring-web/src/main/java/org/springframework/web/service/invoker/CookieValueArgumentResolver.java
index d883765c68..e896e8fe65 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/CookieValueArgumentResolver.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/CookieValueArgumentResolver.java
@@ -20,7 +20,6 @@ import org.springframework.core.MethodParameter;
import org.springframework.core.convert.ConversionService;
import org.springframework.web.bind.annotation.CookieValue;
-
/**
* {@link HttpServiceArgumentResolver} for {@link CookieValue @CookieValue}
* annotated arguments.
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpClientAdapter.java b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpClientAdapter.java
index dd2f42ed41..b72dd52e31 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpClientAdapter.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpClientAdapter.java
@@ -23,10 +23,9 @@ import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
-
/**
* Contract to abstract the underlying HTTP client and decouple it from the
- * {@link HttpServiceProxyFactory#createClient(Class) HTTP Service proxy}.
+ * {@linkplain HttpServiceProxyFactory#createClient(Class) HTTP service proxy}.
*
* @author Rossen Stoyanchev
* @since 6.0
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpMethodArgumentResolver.java b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpMethodArgumentResolver.java
index 67db0e554f..50b84441a3 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpMethodArgumentResolver.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpMethodArgumentResolver.java
@@ -23,7 +23,6 @@ import org.springframework.core.MethodParameter;
import org.springframework.http.HttpMethod;
import org.springframework.lang.Nullable;
-
/**
* {@link HttpServiceArgumentResolver} that resolves the target
* request's HTTP method from an {@link HttpMethod} argument.
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpRequestValues.java b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpRequestValues.java
index 82afcba6c3..20469a977d 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpRequestValues.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpRequestValues.java
@@ -16,7 +16,6 @@
package org.springframework.web.service.invoker;
-
import java.net.URI;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
@@ -42,7 +41,6 @@ import org.springframework.util.MultiValueMap;
import org.springframework.web.util.UriComponentsBuilder;
import org.springframework.web.util.UriUtils;
-
/**
* Container for HTTP request values extracted from an
* {@link org.springframework.web.service.annotation.HttpExchange @HttpExchange}-annotated
@@ -121,7 +119,7 @@ public final class HttpRequestValues {
/**
* Return the URL template for the request, if set.
- * This is mutually exclusive with a {@link #getUri() full URL}.
+ *
This is mutually exclusive with a {@linkplain #getUri() full URL}.
* One of the two has a value but not both.
*/
@Nullable
@@ -171,7 +169,7 @@ public final class HttpRequestValues {
}
/**
- * Return the element type for a {@link #getBody() Publisher body}.
+ * Return the element type for a {@linkplain #getBody() Publisher body}.
*/
@Nullable
public ParameterizedTypeReference> getBodyElementType() {
@@ -237,7 +235,8 @@ public final class HttpRequestValues {
/**
* Set the request URL as a full URL.
*
This is mutually exclusive with, and resets any previously set
- * {@link #setUriTemplate(String)}.
+ * {@linkplain #setUriTemplate(String) URI template} or
+ * {@linkplain #setUriVariable(String, String) URI variables}.
*/
public Builder setUri(URI uri) {
this.uri = uri;
@@ -249,7 +248,7 @@ public final class HttpRequestValues {
/**
* Set the request URL as a String template.
*
This is mutually exclusive with, and resets any previously set
- * {@link #setUri(URI) full URI}.
+ * {@linkplain #setUri(URI) full URI}.
*/
public Builder setUriTemplate(String uriTemplate) {
this.uriTemplate = uriTemplate;
@@ -260,7 +259,7 @@ public final class HttpRequestValues {
/**
* Add a URI variable name-value pair.
*
This is mutually exclusive with, and resets any previously set
- * {@link #setUri(URI) full URI}.
+ * {@linkplain #setUri(URI) full URI}.
*/
public Builder setUriVariable(String name, String value) {
this.uriVars = (this.uriVars != null ? this.uriVars : new LinkedHashMap<>());
@@ -269,7 +268,6 @@ public final class HttpRequestValues {
return this;
}
-
/**
* Set the media types for the request {@code Accept} header.
*/
@@ -330,7 +328,7 @@ public final class HttpRequestValues {
/**
* Set the request body as a concrete value to be serialized.
*
This is mutually exclusive with, and resets any previously set
- * {@link #setBody(Publisher, ParameterizedTypeReference) body Publisher}.
+ * {@linkplain #setBody(Publisher, ParameterizedTypeReference) body Publisher}.
*/
public void setBodyValue(Object bodyValue) {
this.bodyValue = bodyValue;
@@ -341,7 +339,7 @@ public final class HttpRequestValues {
/**
* Set the request body as a concrete value to be serialized.
*
This is mutually exclusive with, and resets any previously set
- * {@link #setBodyValue(Object) body value}.
+ * {@linkplain #setBodyValue(Object) body value}.
*/
public > void setBody(P body, ParameterizedTypeReference elementTye) {
this.body = body;
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceArgumentResolver.java b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceArgumentResolver.java
index 8ba058e741..d9d045e9f0 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceArgumentResolver.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceArgumentResolver.java
@@ -20,7 +20,6 @@ import org.springframework.core.MethodParameter;
import org.springframework.lang.Nullable;
import org.springframework.web.service.annotation.HttpExchange;
-
/**
* Resolve an argument from an {@link HttpExchange @HttpExchange}-annotated method
* to one or more HTTP request values.
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceMethod.java b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceMethod.java
index 3d75643446..81e3758b9b 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceMethod.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceMethod.java
@@ -16,7 +16,6 @@
package org.springframework.web.service.invoker;
-
import java.lang.reflect.Method;
import java.time.Duration;
import java.util.Arrays;
@@ -45,10 +44,9 @@ import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.service.annotation.HttpExchange;
-
/**
* Implements the invocation of an {@link HttpExchange @HttpExchange}-annotated,
- * {@link HttpServiceProxyFactory#createClient(Class) HTTP Service proxy} method
+ * {@link HttpServiceProxyFactory#createClient(Class) HTTP service proxy} method
* by delegating to an {@link HttpClientAdapter} to perform actual requests.
*
* @author Rossen Stoyanchev
@@ -128,8 +126,8 @@ final class HttpServiceMethod {
/**
- * Factory for an {@link HttpRequestValues} with values extracted from
- * the type and method-level {@link HttpExchange @HttpRequest} annotations.
+ * Factory for {@link HttpRequestValues} with values extracted from the type
+ * and method-level {@link HttpExchange @HttpRequest} annotations.
*/
private record HttpRequestValuesInitializer(
HttpMethod httpMethod, @Nullable String url,
@@ -254,7 +252,7 @@ final class HttpServiceMethod {
/**
* Function to execute a request, obtain a response, and adapt to the expected
- * return type blocking if necessary.
+ * return type, blocking if necessary.
*/
private record ResponseFunction(
Function> responseFunction,
@@ -288,7 +286,7 @@ final class HttpServiceMethod {
/**
- * Create the {@code ResponseFunction} that matches method return type.
+ * Create the {@code ResponseFunction} that matches the method's return type.
*/
public static ResponseFunction create(
HttpClientAdapter client, Method method, ReactiveAdapterRegistry reactiveRegistry,
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java
index 388169f2f5..55334b534f 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java
@@ -37,7 +37,6 @@ import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframework.web.service.annotation.HttpExchange;
-
/**
* Factory for creating a client proxy given an HTTP service interface with
* {@link HttpExchange @HttpExchange} methods.
@@ -69,7 +68,7 @@ public final class HttpServiceProxyFactory {
/**
* Return a proxy that implements the given HTTP service interface to perform
- * HTTP requests and retrieves responses through an HTTP client.
+ * HTTP requests and retrieve responses through an HTTP client.
* @param serviceType the HTTP service to create a proxy for
* @param the HTTP service type
* @return the created proxy
@@ -147,7 +146,7 @@ public final class HttpServiceProxyFactory {
/**
* Set the {@link ReactiveAdapterRegistry} to use to support different
- * asynchronous types for HTTP Service method return values.
+ * asynchronous types for HTTP service method return values.
* By default this is {@link ReactiveAdapterRegistry#getSharedInstance()}.
* @return the same builder instance
*/
@@ -157,7 +156,7 @@ public final class HttpServiceProxyFactory {
}
/**
- * Configure how long to wait for a response for an HTTP Service method
+ * Configure how long to wait for a response for an HTTP service method
* with a synchronous (blocking) method signature.
*
By default this is 5 seconds.
* @param blockTimeout the timeout value
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/PathVariableArgumentResolver.java b/spring-web/src/main/java/org/springframework/web/service/invoker/PathVariableArgumentResolver.java
index af87e2418f..810c3f3c0c 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/PathVariableArgumentResolver.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/PathVariableArgumentResolver.java
@@ -20,13 +20,12 @@ import org.springframework.core.MethodParameter;
import org.springframework.core.convert.ConversionService;
import org.springframework.web.bind.annotation.PathVariable;
-
/**
* {@link HttpServiceArgumentResolver} for {@link PathVariable @PathVariable}
* annotated arguments.
*
*
The argument may be a single variable value or a {@code Map} with multiple
- * variable and values. Each value may be a String or an Object to be converted
+ * variables and values. Each value may be a String or an Object to be converted
* to a String through the configured {@link ConversionService}.
*
*
If the value is required but {@code null}, {@link IllegalArgumentException}
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/RequestBodyArgumentResolver.java b/spring-web/src/main/java/org/springframework/web/service/invoker/RequestBodyArgumentResolver.java
index 5463bc3ba8..2303e5eac4 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/RequestBodyArgumentResolver.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/RequestBodyArgumentResolver.java
@@ -26,7 +26,6 @@ import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.RequestBody;
-
/**
* {@link HttpServiceArgumentResolver} for {@link RequestBody @RequestBody}
* annotated arguments.
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/RequestHeaderArgumentResolver.java b/spring-web/src/main/java/org/springframework/web/service/invoker/RequestHeaderArgumentResolver.java
index 92691c0a0f..46ff6ff9a1 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/RequestHeaderArgumentResolver.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/RequestHeaderArgumentResolver.java
@@ -20,7 +20,6 @@ import org.springframework.core.MethodParameter;
import org.springframework.core.convert.ConversionService;
import org.springframework.web.bind.annotation.RequestHeader;
-
/**
* {@link HttpServiceArgumentResolver} for {@link RequestHeader @RequestHeader}
* annotated arguments.
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/RequestParamArgumentResolver.java b/spring-web/src/main/java/org/springframework/web/service/invoker/RequestParamArgumentResolver.java
index ac414c6910..566c6f6f27 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/RequestParamArgumentResolver.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/RequestParamArgumentResolver.java
@@ -20,7 +20,6 @@ import org.springframework.core.MethodParameter;
import org.springframework.core.convert.ConversionService;
import org.springframework.web.bind.annotation.RequestParam;
-
/**
* {@link HttpServiceArgumentResolver} for {@link RequestParam @RequestParam}
* annotated arguments.
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/UrlArgumentResolver.java b/spring-web/src/main/java/org/springframework/web/service/invoker/UrlArgumentResolver.java
index 729954b6ce..bdeee06724 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/UrlArgumentResolver.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/UrlArgumentResolver.java
@@ -21,10 +21,9 @@ import java.net.URI;
import org.springframework.core.MethodParameter;
import org.springframework.lang.Nullable;
-
/**
* {@link HttpServiceArgumentResolver} that resolves the URL for the request
- * from an {@link URI} argument.
+ * from a {@link URI} argument.
*
* @author Rossen Stoyanchev
* @since 6.0
diff --git a/spring-web/src/main/java/org/springframework/web/service/invoker/package-info.java b/spring-web/src/main/java/org/springframework/web/service/invoker/package-info.java
index 13bdc08b71..9c420bbf3f 100644
--- a/spring-web/src/main/java/org/springframework/web/service/invoker/package-info.java
+++ b/spring-web/src/main/java/org/springframework/web/service/invoker/package-info.java
@@ -1,5 +1,5 @@
/**
- * Support to create a client proxy for an HTTP service annotated with
+ * Support for creating a client proxy for an HTTP service annotated with
* {@link org.springframework.web.service.annotation.HttpExchange} methods.
*/
@NonNullApi
diff --git a/spring-web/src/test/java/org/springframework/web/service/invoker/CookieValueArgumentResolverTests.java b/spring-web/src/test/java/org/springframework/web/service/invoker/CookieValueArgumentResolverTests.java
index 744b98bf7e..802d6169b0 100644
--- a/spring-web/src/test/java/org/springframework/web/service/invoker/CookieValueArgumentResolverTests.java
+++ b/spring-web/src/test/java/org/springframework/web/service/invoker/CookieValueArgumentResolverTests.java
@@ -26,9 +26,8 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
-
/**
- * Unit tests for {@link RequestHeaderArgumentResolver}.
+ * Unit tests for {@link CookieValueArgumentResolver}.
*
For base class functionality, see {@link NamedValueArgumentResolverTests}.
*
* @author Rossen Stoyanchev
diff --git a/spring-web/src/test/java/org/springframework/web/service/invoker/HttpMethodArgumentResolverTests.java b/spring-web/src/test/java/org/springframework/web/service/invoker/HttpMethodArgumentResolverTests.java
index 625e0ab627..2bdbaec14b 100644
--- a/spring-web/src/test/java/org/springframework/web/service/invoker/HttpMethodArgumentResolverTests.java
+++ b/spring-web/src/test/java/org/springframework/web/service/invoker/HttpMethodArgumentResolverTests.java
@@ -24,7 +24,6 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
-
/**
* Tests for {@link HttpMethodArgumentResolver}.
*
diff --git a/spring-web/src/test/java/org/springframework/web/service/invoker/HttpRequestValuesTests.java b/spring-web/src/test/java/org/springframework/web/service/invoker/HttpRequestValuesTests.java
index 7962f6d0af..f7074c871c 100644
--- a/spring-web/src/test/java/org/springframework/web/service/invoker/HttpRequestValuesTests.java
+++ b/spring-web/src/test/java/org/springframework/web/service/invoker/HttpRequestValuesTests.java
@@ -16,7 +16,6 @@
package org.springframework.web.service.invoker;
-
import java.net.URI;
import org.junit.jupiter.api.Test;
@@ -30,7 +29,6 @@ import org.springframework.web.util.UriComponentsBuilder;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.assertj.core.api.Assertions.assertThat;
-
/**
* Unit tests for {@link HttpRequestValues}.
*
diff --git a/spring-web/src/test/java/org/springframework/web/service/invoker/HttpServiceMethodTests.java b/spring-web/src/test/java/org/springframework/web/service/invoker/HttpServiceMethodTests.java
index 949eac2771..f61bbbd82c 100644
--- a/spring-web/src/test/java/org/springframework/web/service/invoker/HttpServiceMethodTests.java
+++ b/spring-web/src/test/java/org/springframework/web/service/invoker/HttpServiceMethodTests.java
@@ -16,7 +16,6 @@
package org.springframework.web.service.invoker;
-
import io.reactivex.rxjava3.core.Completable;
import io.reactivex.rxjava3.core.Flowable;
import io.reactivex.rxjava3.core.Single;
@@ -40,12 +39,11 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.http.MediaType.APPLICATION_CBOR_VALUE;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
-
/**
* Tests for {@link HttpServiceMethod} with a test {@link TestHttpClientAdapter}
* that stubs the client invocations.
*
- *
The tests do not create nor invoke {@code HttpServiceMethod} directly but
+ *
The tests do not create or invoke {@code HttpServiceMethod} directly but
* rather use {@link HttpServiceProxyFactory} to create a service proxy in order to
* use a strongly typed interface without the need for class casts.
*
diff --git a/spring-web/src/test/java/org/springframework/web/service/invoker/NamedValueArgumentResolverTests.java b/spring-web/src/test/java/org/springframework/web/service/invoker/NamedValueArgumentResolverTests.java
index 216c844fdb..d447200490 100644
--- a/spring-web/src/test/java/org/springframework/web/service/invoker/NamedValueArgumentResolverTests.java
+++ b/spring-web/src/test/java/org/springframework/web/service/invoker/NamedValueArgumentResolverTests.java
@@ -41,7 +41,6 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
-
/**
* Unit tests for {@link AbstractNamedValueArgumentResolver} through a
* {@link TestValue @TestValue} annotation and {@link TestNamedValueArgumentResolver}.
@@ -230,7 +229,7 @@ class NamedValueArgumentResolverTests {
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
- public @interface TestValue {
+ @interface TestValue {
@AliasFor("name")
String value() default "";
diff --git a/spring-web/src/test/java/org/springframework/web/service/invoker/PathVariableArgumentResolverTests.java b/spring-web/src/test/java/org/springframework/web/service/invoker/PathVariableArgumentResolverTests.java
index 683271375f..ddd0f06738 100644
--- a/spring-web/src/test/java/org/springframework/web/service/invoker/PathVariableArgumentResolverTests.java
+++ b/spring-web/src/test/java/org/springframework/web/service/invoker/PathVariableArgumentResolverTests.java
@@ -24,7 +24,6 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
-
/**
* Tests for {@link PathVariableArgumentResolver}.
*
For base class functionality, see {@link NamedValueArgumentResolverTests}.
diff --git a/spring-web/src/test/java/org/springframework/web/service/invoker/RequestBodyArgumentResolverTests.java b/spring-web/src/test/java/org/springframework/web/service/invoker/RequestBodyArgumentResolverTests.java
index 8d9c78de7c..31142b7cb0 100644
--- a/spring-web/src/test/java/org/springframework/web/service/invoker/RequestBodyArgumentResolverTests.java
+++ b/spring-web/src/test/java/org/springframework/web/service/invoker/RequestBodyArgumentResolverTests.java
@@ -30,7 +30,6 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
-
/**
* Unit tests for {@link RequestBodyArgumentResolver}.
*
@@ -63,6 +62,7 @@ public class RequestBodyArgumentResolverTests {
}
@Test
+ @SuppressWarnings("unchecked")
void singleBody() {
String bodyValue = "bodyValue";
this.service.executeSingle(Single.just(bodyValue));
diff --git a/spring-web/src/test/java/org/springframework/web/service/invoker/RequestHeaderArgumentResolverTests.java b/spring-web/src/test/java/org/springframework/web/service/invoker/RequestHeaderArgumentResolverTests.java
index 7dff321405..83cc12edde 100644
--- a/spring-web/src/test/java/org/springframework/web/service/invoker/RequestHeaderArgumentResolverTests.java
+++ b/spring-web/src/test/java/org/springframework/web/service/invoker/RequestHeaderArgumentResolverTests.java
@@ -26,7 +26,6 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
-
/**
* Unit tests for {@link RequestHeaderArgumentResolver}.
*
For base class functionality, see {@link NamedValueArgumentResolverTests}.
diff --git a/spring-web/src/test/java/org/springframework/web/service/invoker/RequestParamArgumentResolverTests.java b/spring-web/src/test/java/org/springframework/web/service/invoker/RequestParamArgumentResolverTests.java
index 5c6ee5b412..f690316751 100644
--- a/spring-web/src/test/java/org/springframework/web/service/invoker/RequestParamArgumentResolverTests.java
+++ b/spring-web/src/test/java/org/springframework/web/service/invoker/RequestParamArgumentResolverTests.java
@@ -24,7 +24,6 @@ import org.springframework.web.service.annotation.PostExchange;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.assertj.core.api.Assertions.assertThat;
-
/**
* Unit tests for {@link RequestParamArgumentResolver}.
*
diff --git a/spring-web/src/test/java/org/springframework/web/service/invoker/TestHttpClientAdapter.java b/spring-web/src/test/java/org/springframework/web/service/invoker/TestHttpClientAdapter.java
index 9df8142e0d..9f7f176766 100644
--- a/spring-web/src/test/java/org/springframework/web/service/invoker/TestHttpClientAdapter.java
+++ b/spring-web/src/test/java/org/springframework/web/service/invoker/TestHttpClientAdapter.java
@@ -26,7 +26,6 @@ import org.springframework.lang.Nullable;
import static org.assertj.core.api.Assertions.assertThat;
-
/**
* {@link HttpClientAdapter} with stubbed responses.
*
diff --git a/spring-web/src/test/java/org/springframework/web/service/invoker/UrlArgumentResolverTests.java b/spring-web/src/test/java/org/springframework/web/service/invoker/UrlArgumentResolverTests.java
index f0d2b3b543..ee5ba091ac 100644
--- a/spring-web/src/test/java/org/springframework/web/service/invoker/UrlArgumentResolverTests.java
+++ b/spring-web/src/test/java/org/springframework/web/service/invoker/UrlArgumentResolverTests.java
@@ -25,7 +25,6 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
-
/**
* Unit tests for {@link UrlArgumentResolver}.
*