From 64891b3c727b1dda42a79bd7b80032ddbb6371a4 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Wed, 12 Jan 2022 09:14:45 -0500 Subject: [PATCH] GH-2061: Remove Unused Variable --- .../java/org/springframework/kafka/test/EmbeddedKafkaBroker.java | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-kafka-test/src/main/java/org/springframework/kafka/test/EmbeddedKafkaBroker.java b/spring-kafka-test/src/main/java/org/springframework/kafka/test/EmbeddedKafkaBroker.java index 477755abf6..5f8d9ee567 100644 --- a/spring-kafka-test/src/main/java/org/springframework/kafka/test/EmbeddedKafkaBroker.java +++ b/spring-kafka-test/src/main/java/org/springframework/kafka/test/EmbeddedKafkaBroker.java @@ -776,7 +776,6 @@ public void onPartitionsAssigned(Collection partitions) { records = consumer.poll(Duration.ofMillis(100)); // force assignment NOSONAR magic # } if (assigned.get() != null) { - final ConsumerRecords theRecords = records; logger.debug(() -> "Partitions assigned " + assigned.get() + "; re-seeking to "