Sonar Fixes

`getRouteMatcher()` is only `@Nullable` before initialization.
This commit is contained in:
Gary Russell
2019-07-25 09:52:50 -04:00
parent b660920da8
commit 8de73d3417
2 changed files with 3 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ class IntegrationRSocketMessageHandler extends RSocketMessageHandler {
registerHandlerMethod(endpoint, HANDLE_MESSAGE_METHOD,
new CompositeMessageCondition(
RSocketFrameTypeMessageCondition.REQUEST_CONDITION,
new DestinationPatternsMessageCondition(endpoint.getPath(), getRouteMatcher())));
new DestinationPatternsMessageCondition(endpoint.getPath(), getRouteMatcher()))); // NOSONAR
}
@Override

View File

@@ -189,9 +189,10 @@ public class ServerRSocketConnector extends AbstractRSocketConnector
registerHandlerMethod(this, HANDLE_CONNECTION_SETUP_METHOD,
new CompositeMessageCondition(
RSocketFrameTypeMessageCondition.CONNECT_CONDITION,
new DestinationPatternsMessageCondition(new String[] { "*" }, getRouteMatcher())));
new DestinationPatternsMessageCondition(new String[] { "*" }, getRouteMatcher()))); // NOSONAR
}
@SuppressWarnings("unused")
private void handleConnectionSetup(Message<DataBuffer> connectMessage) {
DataBuffer dataBuffer = connectMessage.getPayload();
MessageHeaders messageHeaders = connectMessage.getHeaders();