Skip to content

Commit 1b84562

Browse files
jisoo.yoongaryrussell
jisoo.yoon
authored andcommitted
Add nullable annotation on ContainerProperties.transactionManager getter/setter
1 parent 4eb4d9d commit 1b84562

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/ContainerProperties.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ public Long getIdlePartitionEventInterval() {
543543
return this.idlePartitionEventInterval;
544544
}
545545

546+
@Nullable
546547
public PlatformTransactionManager getTransactionManager() {
547548
return this.transactionManager;
548549
}
@@ -555,7 +556,7 @@ public PlatformTransactionManager getTransactionManager() {
555556
* @since 1.3
556557
* @see #setAckMode(AckMode)
557558
*/
558-
public void setTransactionManager(PlatformTransactionManager transactionManager) {
559+
public void setTransactionManager(@Nullable PlatformTransactionManager transactionManager) {
559560
this.transactionManager = transactionManager;
560561
}
561562

0 commit comments

Comments
 (0)