mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Correct Assert messages that name the wrong parameter
Three Assert messages named a parameter that does not exist on the method. In each case the correct name is already used by neighbouring code in the same class. Signed-off-by: kdomo <dongho5088@naver.com> See gh-51568
This commit is contained in:
@@ -451,7 +451,7 @@ public interface JsonWriter<T> {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <R> Member<R> as(Extractor<T, R> extractor) {
|
||||
Assert.notNull(extractor, "'adapter' must not be null");
|
||||
Assert.notNull(extractor, "'extractor' must not be null");
|
||||
Member<R> result = (Member<R>) this;
|
||||
result.valueExtractor = this.valueExtractor.as(extractor::extract);
|
||||
return result;
|
||||
|
||||
+2
-2
@@ -127,7 +127,7 @@ public interface ClientHttpConnectorBuilder<T extends ClientHttpConnector> {
|
||||
|
||||
/**
|
||||
* Return a new {@link ClientHttpConnectorBuilder} for the given
|
||||
* {@code requestFactoryType}. The following implementations are supported:
|
||||
* {@code clientHttpConnectorType}. The following implementations are supported:
|
||||
* <ul>
|
||||
* <li>{@link ReactorClientHttpConnector}</li>
|
||||
* <li>{@link JettyClientHttpConnector}</li>
|
||||
@@ -140,7 +140,7 @@ public interface ClientHttpConnectorBuilder<T extends ClientHttpConnector> {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
static <T extends ClientHttpConnector> ClientHttpConnectorBuilder<T> of(Class<T> clientHttpConnectorType) {
|
||||
Assert.notNull(clientHttpConnectorType, "'requestFactoryType' must not be null");
|
||||
Assert.notNull(clientHttpConnectorType, "'clientHttpConnectorType' must not be null");
|
||||
Assert.isTrue(clientHttpConnectorType != ClientHttpConnector.class,
|
||||
"'clientHttpConnectorType' must be an implementation of ClientHttpConnector");
|
||||
if (clientHttpConnectorType == ReactorClientHttpConnector.class) {
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ public final class HttpComponentsClientHttpConnectorBuilder
|
||||
*/
|
||||
public HttpComponentsClientHttpConnectorBuilder withHttpClientCustomizer(
|
||||
Consumer<HttpAsyncClientBuilder> httpClientCustomizer) {
|
||||
Assert.notNull(httpClientCustomizer, "'customizer' must not be null");
|
||||
Assert.notNull(httpClientCustomizer, "'httpClientCustomizer' must not be null");
|
||||
return new HttpComponentsClientHttpConnectorBuilder(getCustomizers(),
|
||||
this.httpClientBuilder.withCustomizer(httpClientCustomizer));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user