4747import org .apache .kafka .common .header .Header ;
4848import org .apache .kafka .common .header .internals .RecordHeader ;
4949import org .apache .kafka .common .header .internals .RecordHeaders ;
50- import org .jspecify .annotations .Nullable ;
5150import org .junit .jupiter .api .BeforeAll ;
5251import org .junit .jupiter .api .Test ;
5352import 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 ) {
0 commit comments