From cd075723e255bb3e7c354450238210465648a980 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Wed, 5 Jun 2019 10:03:03 -0400 Subject: [PATCH] Fix new Sonar smells --- .../dsl/RSocketOutboundGatewaySpec.java | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/dsl/RSocketOutboundGatewaySpec.java b/spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/dsl/RSocketOutboundGatewaySpec.java index b5218440f6..68dfc3326f 100644 --- a/spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/dsl/RSocketOutboundGatewaySpec.java +++ b/spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/dsl/RSocketOutboundGatewaySpec.java @@ -18,8 +18,6 @@ package org.springframework.integration.rsocket.dsl; import java.util.function.Function; -import org.reactivestreams.Publisher; - import org.springframework.expression.Expression; import org.springframework.integration.dsl.MessageHandlerSpec; import org.springframework.integration.expression.FunctionExpression; @@ -27,8 +25,6 @@ import org.springframework.integration.expression.ValueExpression; import org.springframework.integration.rsocket.ClientRSocketConnector; import org.springframework.integration.rsocket.outbound.RSocketOutboundGateway; import org.springframework.messaging.Message; -import org.springframework.messaging.rsocket.RSocketRequester; -import org.springframework.messaging.rsocket.RSocketRequesterMethodArgumentResolver; /** * The {@link MessageHandlerSpec} implementation for the {@link RSocketOutboundGateway}. @@ -46,8 +42,6 @@ public class RSocketOutboundGatewaySpec extends MessageHandlerSpec the expected request message payload type. * @return the spec * @see RSocketOutboundGateway#setPublisherElementTypeExpression(Expression) @@ -126,10 +120,10 @@ public class RSocketOutboundGatewaySpec extends MessageHandlerSpec