Fix deprecations from Spring's StringUtils

* Use `LogAccessor` in the `XmlValidatingMessageSelector`
This commit is contained in:
Artem Bilan
2020-10-28 16:33:51 -04:00
parent 0a2a82a2f3
commit ac6a0982e5
2 changed files with 11 additions and 12 deletions

View File

@@ -169,7 +169,7 @@ public class ReactiveRedisStreamMessageProducer extends MessageProducerSupport {
protected void onInit() {
super.onInit();
this.streamReceiver = StreamReceiver.create(this.reactiveConnectionFactory, this.streamReceiverOptions);
if (StringUtils.hasText(this.consumerName) && StringUtils.isEmpty(this.consumerGroup)) {
if (StringUtils.hasText(this.consumerName) && !StringUtils.hasText(this.consumerGroup)) {
this.consumerGroup = getBeanName();
}
ReactiveRedisTemplate<String, ?> reactiveRedisTemplate =
@@ -185,7 +185,7 @@ public class ReactiveRedisStreamMessageProducer extends MessageProducerSupport {
Flux<? extends Record<String, ?>> events;
if (StringUtils.isEmpty(this.consumerName)) {
if (!StringUtils.hasText(this.consumerName)) {
events = this.streamReceiver.receive(offset);
}
else {