Skip to content

Commit 53f5667

Browse files
committed
Fix Sonar smell for consumerPaused property
1 parent 27a7690 commit 53f5667

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/KafkaMessageListenerContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,12 +480,12 @@ private final class ListenerConsumer implements SchedulingAwareRunnable, Consume
480480

481481
private boolean taskSchedulerExplicitlySet;
482482

483-
volatile boolean consumerPaused;
484-
485483
private long lastReceive = System.currentTimeMillis();
486484

487485
private long lastAlertAt = this.lastReceive;
488486

487+
private volatile boolean consumerPaused;
488+
489489
private volatile long lastPoll = System.currentTimeMillis();
490490

491491
@SuppressWarnings(UNCHECKED)

0 commit comments

Comments
 (0)