Fix new Sonar smells

This commit is contained in:
Artem Bilan
2020-07-16 11:36:04 -04:00
parent b3111414fb
commit 8b16aede89
2 changed files with 6 additions and 4 deletions

View File

@@ -182,7 +182,9 @@ public class KafkaProducerMessageHandler<K, V> extends AbstractReplyProducingMes
+ "configured to read uncommitted records");
}
determineSendTimeout();
this.deliveryTimeoutMsProperty = this.sendTimeoutExpression.getValue(Long.class) - TIMEOUT_BUFFER;
this.deliveryTimeoutMsProperty =
this.sendTimeoutExpression.getValue(Long.class) // NOSONAR - never null after determineSendTimeout()
- TIMEOUT_BUFFER;
}
private void determineSendTimeout() {