Skip to content

Commit 61d045c

Browse files
committed
Polishing
1 parent c0bef2c commit 61d045c

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -73,6 +73,7 @@ public class HttpComponentsClientHttpRequestFactory implements ClientHttpRequest
7373

7474
private long connectionRequestTimeout = -1;
7575

76+
7677
/**
7778
* Create a new instance of the {@code HttpComponentsClientHttpRequestFactory}
7879
* with a default {@link HttpClient} based on system properties.
@@ -202,6 +203,7 @@ public void setHttpContextFactory(BiFunction<HttpMethod, URI, HttpContext> httpC
202203
this.httpContextFactory = httpContextFactory;
203204
}
204205

206+
205207
@Override
206208
public ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod) throws IOException {
207209
HttpClient client = getHttpClient();
@@ -309,8 +311,8 @@ else if (HttpMethod.TRACE.equals(httpMethod)) {
309311
}
310312

311313
/**
312-
* Template method that allows for manipulating the {@link ClassicHttpRequest} before it is
313-
* returned as part of a {@link HttpComponentsClientHttpRequest}.
314+
* Template method that allows for manipulating the {@link ClassicHttpRequest}
315+
* before it is returned as part of a {@link HttpComponentsClientHttpRequest}.
314316
* <p>The default implementation is empty.
315317
* @param request the request to process
316318
*/
@@ -331,8 +333,7 @@ protected HttpContext createHttpContext(HttpMethod httpMethod, URI uri) {
331333

332334

333335
/**
334-
* Shutdown hook that closes the underlying
335-
* {@link HttpClientConnectionManager ClientConnectionManager}'s
336+
* Shutdown hook that closes the underlying {@link HttpClientConnectionManager}'s
336337
* connection pool, if any.
337338
*/
338339
@Override

spring-web/src/main/java/org/springframework/http/client/reactive/ReactorNetty2ResourceFactory.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -135,7 +135,7 @@ public ConnectionProvider getConnectionProvider() {
135135
/**
136136
* Use this when you don't want to participate in global resources and
137137
* you want to customize the creation of the managed {@code LoopResources}.
138-
* <p>By default, {@code LoopResources.create("reactor-http")} is used.
138+
* <p>By default, {@code LoopResources.create("webflux-http")} is used.
139139
* <p>Note that this option is ignored if {@code userGlobalResources=false} or
140140
* {@link #setLoopResources(LoopResources)} is set.
141141
* @param supplier the supplier to use
@@ -170,7 +170,6 @@ public LoopResources getLoopResources() {
170170
* can also be overridden with the system property
171171
* {@link reactor.netty5.ReactorNetty#SHUTDOWN_QUIET_PERIOD
172172
* ReactorNetty.SHUTDOWN_QUIET_PERIOD}.
173-
* @since 5.2.4
174173
* @see #setShutdownTimeout(Duration)
175174
*/
176175
public void setShutdownQuietPeriod(Duration shutdownQuietPeriod) {
@@ -187,7 +186,6 @@ public void setShutdownQuietPeriod(Duration shutdownQuietPeriod) {
187186
* can also be overridden with the system property
188187
* {@link reactor.netty5.ReactorNetty#SHUTDOWN_TIMEOUT
189188
* ReactorNetty.SHUTDOWN_TIMEOUT}.
190-
* @since 5.2.4
191189
* @see #setShutdownQuietPeriod(Duration)
192190
*/
193191
public void setShutdownTimeout(Duration shutdownTimeout) {

0 commit comments

Comments
 (0)