Skip to content

Commit cd07572

Browse files
committed
Fix new Sonar smells
1 parent 5e7c1ae commit cd07572

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/dsl/RSocketOutboundGatewaySpec.java

+11-17
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,13 @@
1818

1919
import java.util.function.Function;
2020

21-
import org.reactivestreams.Publisher;
22-
2321
import org.springframework.expression.Expression;
2422
import org.springframework.integration.dsl.MessageHandlerSpec;
2523
import org.springframework.integration.expression.FunctionExpression;
2624
import org.springframework.integration.expression.ValueExpression;
2725
import org.springframework.integration.rsocket.ClientRSocketConnector;
2826
import org.springframework.integration.rsocket.outbound.RSocketOutboundGateway;
2927
import org.springframework.messaging.Message;
30-
import org.springframework.messaging.rsocket.RSocketRequester;
31-
import org.springframework.messaging.rsocket.RSocketRequesterMethodArgumentResolver;
3228

3329
/**
3430
* The {@link MessageHandlerSpec} implementation for the {@link RSocketOutboundGateway}.
@@ -46,8 +42,6 @@ public class RSocketOutboundGatewaySpec extends MessageHandlerSpec<RSocketOutbou
4642
/**
4743
* Configure a {@link ClientRSocketConnector} for client side requests based on the connection
4844
* provided by the {@link ClientRSocketConnector#getRSocketRequester()}.
49-
* In case of server side, an {@link RSocketRequester} must be provided in the
50-
* {@link RSocketRequesterMethodArgumentResolver#RSOCKET_REQUESTER_HEADER} header of request message.
5145
* @param clientRSocketConnector the {@link ClientRSocketConnector} to use.
5246
* @return the spec
5347
* @see RSocketOutboundGateway#setClientRSocketConnector(ClientRSocketConnector)
@@ -103,8 +97,8 @@ public RSocketOutboundGatewaySpec command(Expression commandExpression) {
10397
}
10498

10599
/**
106-
* Configure a type for a request {@link Publisher} elements.
107-
* @param publisherElementType the type of the request {@link Publisher} elements.
100+
* Configure a type for a request {@link org.reactivestreams.Publisher} elements.
101+
* @param publisherElementType the type of the request {@link org.reactivestreams.Publisher} elements.
108102
* @return the spec
109103
* @see RSocketOutboundGateway#setPublisherElementType(Class)
110104
*/
@@ -113,10 +107,10 @@ public RSocketOutboundGatewaySpec publisherElementType(Class<?> publisherElement
113107
}
114108

115109
/**
116-
* Configure a {@code Function} to evaluate a request {@link Publisher} elements type at runtime against
117-
* a request message.
110+
* Configure a {@code Function} to evaluate a request {@link org.reactivestreams.Publisher}
111+
* elements type at runtime against a request message.
118112
* @param publisherElementTypeFunction the {@code Function} to evaluate a type for the request
119-
* {@link Publisher} elements.
113+
* {@link org.reactivestreams.Publisher} elements.
120114
* @param <P> the expected request message payload type.
121115
* @return the spec
122116
* @see RSocketOutboundGateway#setPublisherElementTypeExpression(Expression)
@@ -126,10 +120,10 @@ public <P> RSocketOutboundGatewaySpec publisherElementType(Function<Message<P>,
126120
}
127121

128122
/**
129-
* Configure a SpEL expression to evaluate a request {@link Publisher} elements type at runtime against
130-
* a request message.
123+
* Configure a SpEL expression to evaluate a request {@link org.reactivestreams.Publisher}
124+
* elements type at runtime against a request message.
131125
* @param publisherElementTypeExpression the expression to evaluate a type for the request
132-
* {@link Publisher} elements.
126+
* {@link org.reactivestreams.Publisher} elements.
133127
* @return the spec
134128
* @see RSocketOutboundGateway#setPublisherElementTypeExpression(Expression)
135129
*/
@@ -138,10 +132,10 @@ public RSocketOutboundGatewaySpec publisherElementType(String publisherElementTy
138132
}
139133

140134
/**
141-
* Configure a SpEL expression to evaluate a request {@link Publisher} elements type at runtime against
142-
* a request message.
135+
* Configure a SpEL expression to evaluate a request {@link org.reactivestreams.Publisher}
136+
* elements type at runtime against a request message.
143137
* @param publisherElementTypeExpression the expression to evaluate a type for the request
144-
* {@link Publisher} elements.
138+
* {@link org.reactivestreams.Publisher} elements.
145139
* @return the spec
146140
* @see RSocketOutboundGateway#setPublisherElementTypeExpression(Expression)
147141
*/

0 commit comments

Comments
 (0)