Skip to content

Commit 4575699

Browse files
committed
GH-1559: Fix Sonar Issues
1 parent c43a85f commit 4575699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/FailedRecordTracker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ private BackOff determineBackOff(ConsumerRecord<?, ?> record, Exception exceptio
142142
if (this.backOffFunction == null) {
143143
return this.backOff;
144144
}
145-
BackOff backOff = this.backOffFunction.apply(record, exception);
146-
return backOff != null ? backOff : this.backOff;
145+
BackOff backOffToUse = this.backOffFunction.apply(record, exception);
146+
return backOffToUse != null ? backOffToUse : this.backOff;
147147
}
148148

149149
private void attemptRecovery(ConsumerRecord<?, ?> record, Exception exception, @Nullable TopicPartition tp) {

0 commit comments

Comments
 (0)