In what version(s) of Spring for Apache Kafka are you seeing this issue?
For example:
3.1.1 - but seems like this is true in the latest versions too
Describe the bug
Similar to https://github.com/spring-projects/spring-kafka/issues/1825 the @NonNullApi applied to the
package org.springframework.kafka.core.reactive means that static analysis tools think it is not possible to pass null into org.springframework.kafka.core.reactive.ReactiveKafkaProducerTemplate#send(java.lang.String, K, V), but null is allowed and required if we want to publish null tombstone messages.
To Reproduce
Create a ReactiveKafkaProducerTemplate instance and call send on it with a value of null, run SonarLint on that class.
Expected behavior
The value parameter in this method and the other related methods should be annotated as nullable.
In what version(s) of Spring for Apache Kafka are you seeing this issue?
For example:
3.1.1 - but seems like this is true in the latest versions too
Describe the bug
Similar to https://github.com/spring-projects/spring-kafka/issues/1825 the
@NonNullApi
applied to the package org.springframework.kafka.core.reactive means that static analysis tools think it is not possible to passnull
intoorg.springframework.kafka.core.reactive.ReactiveKafkaProducerTemplate#send(java.lang.String, K, V)
, butnull
is allowed and required if we want to publish null tombstone messages.To Reproduce
Create a ReactiveKafkaProducerTemplate instance and call send on it with a value of
null
, run SonarLint on that class.Expected behavior
The value parameter in this method and the other related methods should be annotated as nullable.