Skip to content

Commit 65a7fd2

Browse files
committed
GH-2061: Remove Unused Variable
1 parent 64891b3 commit 65a7fd2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-kafka-test/src/main/java/org/springframework/kafka/test/EmbeddedKafkaBroker.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import org.apache.kafka.clients.admin.NewTopic;
5151
import org.apache.kafka.clients.consumer.Consumer;
5252
import org.apache.kafka.clients.consumer.ConsumerRebalanceListener;
53-
import org.apache.kafka.clients.consumer.ConsumerRecords;
5453
import org.apache.kafka.common.TopicPartition;
5554
import org.apache.kafka.common.security.auth.SecurityProtocol;
5655
import org.apache.kafka.common.utils.AppInfoParser;
@@ -770,10 +769,9 @@ public void onPartitionsAssigned(Collection<TopicPartition> partitions) {
770769
}
771770

772771
});
773-
ConsumerRecords<?, ?> records = null;
774772
int n = 0;
775773
while (assigned.get() == null && n++ < 600) { // NOSONAR magic #
776-
records = consumer.poll(Duration.ofMillis(100)); // force assignment NOSONAR magic #
774+
consumer.poll(Duration.ofMillis(100)); // force assignment NOSONAR magic #
777775
}
778776
if (assigned.get() != null) {
779777
logger.debug(() -> "Partitions assigned "

0 commit comments

Comments
 (0)