Skip to content

GH-1900: Add @nullable to setters for the corresponding nullable getters. #1901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public void setAckTime(long ackTime) {
* Set the executor for threads that poll the consumer.
* @param consumerTaskExecutor the executor
*/
public void setConsumerTaskExecutor(AsyncListenableTaskExecutor consumerTaskExecutor) {
public void setConsumerTaskExecutor(@Nullable AsyncListenableTaskExecutor consumerTaskExecutor) {
this.consumerTaskExecutor = consumerTaskExecutor;
}

Expand Down Expand Up @@ -419,7 +419,7 @@ public void setShutdownTimeout(long shutdownTimeout) {
* no records and this interval has elapsed since a record was returned.
* @param idleEventInterval the interval.
*/
public void setIdleEventInterval(Long idleEventInterval) {
public void setIdleEventInterval(@Nullable Long idleEventInterval) {
this.idleEventInterval = idleEventInterval;
}

Expand All @@ -428,7 +428,7 @@ public void setIdleEventInterval(Long idleEventInterval) {
* no records for a partition and this interval has elapsed since a record was returned.
* @param idlePartitionEventInterval the interval.
*/
public void setIdlePartitionEventInterval(Long idlePartitionEventInterval) {
public void setIdlePartitionEventInterval(@Nullable Long idlePartitionEventInterval) {
this.idlePartitionEventInterval = idlePartitionEventInterval;
}

Expand Down Expand Up @@ -520,7 +520,7 @@ public TaskScheduler getScheduler() {
* @since 1.3.1
* @see #setMonitorInterval(int)
*/
public void setScheduler(TaskScheduler scheduler) {
public void setScheduler(@Nullable TaskScheduler scheduler) {
this.scheduler = scheduler;
}

Expand Down Expand Up @@ -677,7 +677,7 @@ public Boolean getSubBatchPerPartition() {
* @param subBatchPerPartition true for a separate transaction for each partition.
* @since 2.3.2
*/
public void setSubBatchPerPartition(boolean subBatchPerPartition) {
public void setSubBatchPerPartition(@Nullable boolean subBatchPerPartition) {
this.subBatchPerPartition = subBatchPerPartition;
}

Expand Down Expand Up @@ -761,7 +761,7 @@ public TransactionDefinition getTransactionDefinition() {
* @since 2.5.4
* @see #setTransactionManager(PlatformTransactionManager)
*/
public void setTransactionDefinition(TransactionDefinition transactionDefinition) {
public void setTransactionDefinition(@Nullable TransactionDefinition transactionDefinition) {
this.transactionDefinition = transactionDefinition;
}

Expand Down