Skip to content

Commit c1f8668

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

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
@@ -474,6 +474,7 @@ public Long getIdlePartitionEventInterval() {
474474
return this.idlePartitionEventInterval;
475475
}
476476

477+
@Nullable
477478
public PlatformTransactionManager getTransactionManager() {
478479
return this.transactionManager;
479480
}
@@ -486,7 +487,7 @@ public PlatformTransactionManager getTransactionManager() {
486487
* @since 1.3
487488
* @see #setAckMode(AckMode)
488489
*/
489-
public void setTransactionManager(PlatformTransactionManager transactionManager) {
490+
public void setTransactionManager(@Nullable PlatformTransactionManager transactionManager) {
490491
this.transactionManager = transactionManager;
491492
}
492493

0 commit comments

Comments
 (0)