Skip to content

Commit df9b014

Browse files
committed
NonNull API Retryable Topic
1 parent 9d43b93 commit df9b014

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

spring-kafka/src/main/java/org/springframework/kafka/retrytopic/ListenerContainerFactoryConfigurer.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.springframework.kafka.listener.MessageListener;
3636
import org.springframework.kafka.listener.adapter.KafkaBackoffAwareMessageListenerAdapter;
3737
import org.springframework.kafka.support.TopicPartitionOffset;
38+
import org.springframework.lang.Nullable;
3839
import org.springframework.util.Assert;
3940
import org.springframework.util.backoff.BackOff;
4041

@@ -59,9 +60,11 @@
5960
*/
6061
public class ListenerContainerFactoryConfigurer {
6162

62-
private BackOff providedBlockingBackOff = null;
63+
@Nullable
64+
private BackOff providedBlockingBackOff;
6365

64-
private Class<? extends Exception>[] blockingExceptionTypes = null;
66+
@Nullable
67+
private Class<? extends Exception>[] blockingExceptionTypes;
6568

6669
private boolean retainStandardFatal;
6770

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/**
22
* Package for retryable topic handling.
33
*/
4+
@org.springframework.lang.NonNullApi
5+
@org.springframework.lang.NonNullFields
46
package org.springframework.kafka.retrytopic;

0 commit comments

Comments
 (0)