Skip to content

Commit fcf8f46

Browse files
committed
Fixing build issues
Signed-off-by: Soby Chacko <[email protected]>
1 parent d8bfbe8 commit fcf8f46

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

spring-kafka/src/test/java/org/springframework/kafka/listener/TransactionalContainerTests.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
import org.apache.kafka.common.header.Header;
4848
import org.apache.kafka.common.header.internals.RecordHeader;
4949
import org.apache.kafka.common.header.internals.RecordHeaders;
50-
import org.jspecify.annotations.Nullable;
5150
import org.junit.jupiter.api.BeforeAll;
5251
import org.junit.jupiter.api.Test;
5352
import org.mockito.ArgumentCaptor;
@@ -1164,7 +1163,7 @@ void testSendOffsetOnlyOnActiveTransaction() throws InterruptedException {
11641163

11651164
// init consumer
11661165
String group = "testSendOffsetOnlyOnActiveTransaction";
1167-
Map<String, Object> consumerProperties = KafkaTestUtils.consumerProps(embeddedKafka, group, false);
1166+
Map<String, Object> consumerProperties = KafkaTestUtils.consumerProps(group, "false", embeddedKafka);
11681167
consumerProperties.put(ConsumerConfig.ISOLATION_LEVEL_CONFIG, "read_committed");
11691168
DefaultKafkaConsumerFactory<Integer, String> cf = new DefaultKafkaConsumerFactory<>(consumerProperties);
11701169
ContainerProperties containerProps = new ContainerProperties(topic11);
@@ -1181,7 +1180,7 @@ public void onMessage(ConsumerRecord<Integer, String> data) {
11811180
AtomicInteger txCount = new AtomicInteger(0);
11821181
tm.addListener(new TransactionExecutionListener() {
11831182
@Override
1184-
public void afterCommit(TransactionExecution transaction, @Nullable Throwable commitFailure) {
1183+
public void afterCommit(TransactionExecution transaction, Throwable commitFailure) {
11851184
txCount.incrementAndGet();
11861185
TransactionExecutionListener.super.afterCommit(transaction, commitFailure);
11871186
}
@@ -1195,7 +1194,7 @@ public void afterCommit(TransactionExecution transaction, @Nullable Throwable co
11951194
boolean isFirst = true;
11961195

11971196
@Override
1198-
public @Nullable ConsumerRecord<Integer, String> intercept(
1197+
public ConsumerRecord<Integer, String> intercept(
11991198
ConsumerRecord<Integer, String> record,
12001199
Consumer<Integer, String> consumer) {
12011200
if (isFirst) {

spring-kafka/src/test/java/org/springframework/kafka/retrytopic/ReusableRetryTopicMultipleDltIntegrationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import org.springframework.beans.factory.annotation.Autowired;
3535
import org.springframework.context.annotation.Bean;
3636
import org.springframework.context.annotation.Configuration;
37-
import org.springframework.kafka.annotation.BackOff;
3837
import org.springframework.kafka.annotation.DltHandler;
3938
import org.springframework.kafka.annotation.EnableKafka;
4039
import org.springframework.kafka.annotation.KafkaListener;
@@ -52,6 +51,7 @@
5251
import org.springframework.kafka.test.context.EmbeddedKafka;
5352
import org.springframework.kafka.test.utils.KafkaTestUtils;
5453
import org.springframework.messaging.handler.annotation.Header;
54+
import org.springframework.retry.annotation.Backoff;
5555
import org.springframework.scheduling.TaskScheduler;
5656
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
5757
import org.springframework.test.annotation.DirtiesContext;
@@ -134,7 +134,7 @@ static class SingleDltListener {
134134

135135
@RetryableTopic(
136136
attempts = "3",
137-
backOff = @BackOff(50),
137+
backoff = @Backoff(50),
138138
sameIntervalTopicReuseStrategy = SameIntervalTopicReuseStrategy.SINGLE_TOPIC
139139
)
140140
@KafkaListener(id = "singleDltListenerId", topics = SINGLE_DLT_TOPIC)
@@ -158,7 +158,7 @@ static class MultiDltListener {
158158

159159
@RetryableTopic(
160160
attempts = "3",
161-
backOff = @BackOff(50),
161+
backoff = @Backoff(50),
162162
sameIntervalTopicReuseStrategy = SameIntervalTopicReuseStrategy.SINGLE_TOPIC,
163163
exceptionBasedDltRouting = {
164164
@ExceptionBasedDltDestination(suffix = "-custom", exceptions = { CustomRetryException.class }),
@@ -195,7 +195,7 @@ static class NoDltListener {
195195

196196
@RetryableTopic(
197197
attempts = "3",
198-
backOff = @BackOff(50),
198+
backoff = @Backoff(50),
199199
dltStrategy = DltStrategy.NO_DLT,
200200
sameIntervalTopicReuseStrategy = SameIntervalTopicReuseStrategy.SINGLE_TOPIC
201201
)

0 commit comments

Comments
 (0)