Skip to content

Commit 5fb9b8e

Browse files
committed
GH-2198: Remove Unused Field from Test
1 parent cbebf9e commit 5fb9b8e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

spring-kafka/src/test/java/org/springframework/kafka/support/micrometer/ObservationIntegrationTests.java

-4
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ public static class Listener {
159159

160160
final CountDownLatch latch1 = new CountDownLatch(1);
161161

162-
volatile ConsumerRecord<Integer, String> record;
163-
164162
public Listener(KafkaTemplate<Integer, String> template) {
165163
this.template = template;
166164
}
@@ -172,11 +170,9 @@ void listen1(ConsumerRecord<Integer, String> in) {
172170

173171
@KafkaListener(id = "obs2", topics = "int.observation.testT2")
174172
void listen2(ConsumerRecord<Integer, String> in) {
175-
this.record = in;
176173
this.latch1.countDown();
177174
}
178175

179176
}
180177

181-
182178
}

0 commit comments

Comments
 (0)