We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49eeffa commit 30d242bCopy full SHA for 30d242b
spring-kafka/src/main/java/org/springframework/kafka/core/ConsumerFactory.java
@@ -34,7 +34,7 @@
34
* @author Gary Russell
35
* @author Artem Bilan
36
*/
37
-public interface ConsumerFactory<K, V> {
+public interface ConsumerFactory<K, V extends @Nullable Object> {
38
39
/**
40
* Create a consumer with the group id and client id as configured in the properties.
spring-kafka/src/main/java/org/springframework/kafka/core/ProducerFactory.java
@@ -36,7 +36,7 @@
* @author Thomas Strauß
* @author Kwon YongHyun
-public interface ProducerFactory<K, V> {
+public interface ProducerFactory<K, V extends @Nullable Object> {
41
42
* The default close timeout duration as 30 seconds.
0 commit comments