Skip to content

Commit 9072e92

Browse files
committed
Add @Nullable WebClient in WebFluxRequestExecMH
1 parent 2ebbdde commit 9072e92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-integration-webflux/src/main/java/org/springframework/integration/webflux/outbound/WebFluxRequestExecutingMessageHandler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public WebFluxRequestExecutingMessageHandler(Expression uriExpression) {
106106
* @param uri The URI.
107107
* @param webClient The WebClient to use.
108108
*/
109-
public WebFluxRequestExecutingMessageHandler(String uri, WebClient webClient) {
109+
public WebFluxRequestExecutingMessageHandler(String uri, @Nullable WebClient webClient) {
110110
this(new LiteralExpression(uri), webClient);
111111
/*
112112
* We'd prefer to do this assertion first, but the compiler doesn't allow it. However,
@@ -122,7 +122,7 @@ public WebFluxRequestExecutingMessageHandler(String uri, WebClient webClient) {
122122
* {@link org.springframework.beans.factory.BeanFactory}.
123123
* @param webClient The WebClient to use.
124124
*/
125-
public WebFluxRequestExecutingMessageHandler(Expression uriExpression, WebClient webClient) {
125+
public WebFluxRequestExecutingMessageHandler(Expression uriExpression, @Nullable WebClient webClient) {
126126
super(uriExpression);
127127
this.webClient = (webClient == null ? WebClient.create() : webClient);
128128
this.setAsync(true);

0 commit comments

Comments
 (0)