From 61d045ce5293b0e2664bb957c2be6949ff55fdff Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 6 Jun 2024 08:54:37 +0200 Subject: [PATCH] Polishing --- .../HttpComponentsClientHttpRequestFactory.java | 11 ++++++----- .../client/reactive/ReactorNetty2ResourceFactory.java | 6 ++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java b/spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java index 830165989d4..d5d73e8f891 100644 --- a/spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java +++ b/spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,6 +73,7 @@ public class HttpComponentsClientHttpRequestFactory implements ClientHttpRequest private long connectionRequestTimeout = -1; + /** * Create a new instance of the {@code HttpComponentsClientHttpRequestFactory} * with a default {@link HttpClient} based on system properties. @@ -202,6 +203,7 @@ public class HttpComponentsClientHttpRequestFactory implements ClientHttpRequest this.httpContextFactory = httpContextFactory; } + @Override public ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod) throws IOException { HttpClient client = getHttpClient(); @@ -309,8 +311,8 @@ public class HttpComponentsClientHttpRequestFactory implements ClientHttpRequest } /** - * Template method that allows for manipulating the {@link ClassicHttpRequest} before it is - * returned as part of a {@link HttpComponentsClientHttpRequest}. + * Template method that allows for manipulating the {@link ClassicHttpRequest} + * before it is returned as part of a {@link HttpComponentsClientHttpRequest}. *

The default implementation is empty. * @param request the request to process */ @@ -331,8 +333,7 @@ public class HttpComponentsClientHttpRequestFactory implements ClientHttpRequest /** - * Shutdown hook that closes the underlying - * {@link HttpClientConnectionManager ClientConnectionManager}'s + * Shutdown hook that closes the underlying {@link HttpClientConnectionManager}'s * connection pool, if any. */ @Override diff --git a/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorNetty2ResourceFactory.java b/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorNetty2ResourceFactory.java index 05a8bebeb24..9555a1c67a8 100644 --- a/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorNetty2ResourceFactory.java +++ b/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorNetty2ResourceFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -135,7 +135,7 @@ public class ReactorNetty2ResourceFactory implements InitializingBean, Disposabl /** * Use this when you don't want to participate in global resources and * you want to customize the creation of the managed {@code LoopResources}. - *

By default, {@code LoopResources.create("reactor-http")} is used. + *

By default, {@code LoopResources.create("webflux-http")} is used. *

Note that this option is ignored if {@code userGlobalResources=false} or * {@link #setLoopResources(LoopResources)} is set. * @param supplier the supplier to use @@ -170,7 +170,6 @@ public class ReactorNetty2ResourceFactory implements InitializingBean, Disposabl * can also be overridden with the system property * {@link reactor.netty5.ReactorNetty#SHUTDOWN_QUIET_PERIOD * ReactorNetty.SHUTDOWN_QUIET_PERIOD}. - * @since 5.2.4 * @see #setShutdownTimeout(Duration) */ public void setShutdownQuietPeriod(Duration shutdownQuietPeriod) { @@ -187,7 +186,6 @@ public class ReactorNetty2ResourceFactory implements InitializingBean, Disposabl * can also be overridden with the system property * {@link reactor.netty5.ReactorNetty#SHUTDOWN_TIMEOUT * ReactorNetty.SHUTDOWN_TIMEOUT}. - * @since 5.2.4 * @see #setShutdownQuietPeriod(Duration) */ public void setShutdownTimeout(Duration shutdownTimeout) {