Sonar Fixes
`getRouteMatcher()` is only `@Nullable` before initialization.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user