Address Sonar reports for recent commits
This commit is contained in:
committed by
Artem Bilan
parent
648aeb8e96
commit
433ef4c4aa
@@ -102,12 +102,13 @@ public class RedisPublishingMessageHandler extends AbstractMessageHandler {
|
||||
protected void handleMessageInternal(Message<?> message) {
|
||||
String topic = this.topicExpression.getValue(this.evaluationContext, message, String.class);
|
||||
Object value = this.messageConverter.fromMessage(message, Object.class);
|
||||
// TODO: 5.2 assert both not null
|
||||
|
||||
if (value instanceof byte[]) {
|
||||
this.template.convertAndSend(topic, value);
|
||||
this.template.convertAndSend(topic, value); // NOSONAR
|
||||
}
|
||||
else {
|
||||
this.template.convertAndSend(topic, ((RedisSerializer<Object>) this.serializer).serialize(value));
|
||||
this.template.convertAndSend(topic, ((RedisSerializer<Object>) this.serializer).serialize(value)); // NOSONAR
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -125,11 +125,12 @@ public class RedisQueueOutboundChannelAdapter extends AbstractMessageHandler {
|
||||
}
|
||||
|
||||
String queueName = this.queueNameExpression.getValue(this.evaluationContext, message, String.class);
|
||||
// TODO: 5.2 assert both not null
|
||||
if (this.leftPush) {
|
||||
this.template.boundListOps(queueName).leftPush(value);
|
||||
this.template.boundListOps(queueName).leftPush(value); // NOSONAR
|
||||
}
|
||||
else {
|
||||
this.template.boundListOps(queueName).rightPush(value);
|
||||
this.template.boundListOps(queueName).rightPush(value); // NOSONAR
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user