Skip to content

Commit a0edf12

Browse files
committed
Fix misleading statement in ReactorResourceFactory javadoc
Closes gh-33338
1 parent bcffa15 commit a0edf12

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

+6-4
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ public void addGlobalResourcesConsumer(Consumer<HttpResources> consumer) {
122122
* Use this when you don't want to participate in global resources and
123123
* you want to customize the creation of the managed {@code ConnectionProvider}.
124124
* <p>By default, {@code ConnectionProvider.elastic("http")} is used.
125-
* <p>Note that this option is ignored if {@code userGlobalResources=false} or
126-
* {@link #setConnectionProvider(ConnectionProvider)} is set.
125+
* <p>Note that this supplier is ignored if {@link #isUseGlobalResources()}
126+
* is {@code true} or once the {@link #setConnectionProvider(ConnectionProvider) ConnectionProvider}
127+
* is set.
127128
* @param supplier the supplier to use
128129
*/
129130
public void setConnectionProviderSupplier(Supplier<ConnectionProvider> supplier) {
@@ -157,8 +158,9 @@ public ConnectionProvider getConnectionProvider() {
157158
* Use this when you don't want to participate in global resources and
158159
* you want to customize the creation of the managed {@code LoopResources}.
159160
* <p>By default, {@code LoopResources.create("webflux-http")} is used.
160-
* <p>Note that this option is ignored if {@code userGlobalResources=false} or
161-
* {@link #setLoopResources(LoopResources)} is set.
161+
* <p>Note that this supplier is ignored if {@link #isUseGlobalResources()}
162+
* is {@code true} or once the {@link #setLoopResources(LoopResources) LoopResources}
163+
* is set.
162164
* @param supplier the supplier to use
163165
*/
164166
public void setLoopResourcesSupplier(Supplier<LoopResources> supplier) {

0 commit comments

Comments
 (0)