From de5383f7b0d14cabad54dd9e2c38acb0b67f89f7 Mon Sep 17 00:00:00 2001 From: Jiwon Date: Wed, 30 Oct 2024 07:31:24 +0900 Subject: [PATCH] Remove duplicate producerProperties declaration in kafkaProducerFactory (#3605) --- .../main/antora/modules/ROOT/pages/kafka/interceptors.adoc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/interceptors.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/interceptors.adoc index 2d96b135db..b2a3ae1728 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/interceptors.adoc +++ b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/interceptors.adoc @@ -30,11 +30,9 @@ public class Application { Map producerProperties = new HashMap<>(); // producerProperties.put(..., ...) // ... - Map producerProperties = properties.buildProducerProperties(); producerProperties.put(ProducerConfig.INTERCEPTOR_CLASSES_CONFIG, MyProducerInterceptor.class.getName()); producerProperties.put("some.bean", someBean); - DefaultKafkaProducerFactory factory = new DefaultKafkaProducerFactory<>(producerProperties); - return factory; + return new DefaultKafkaProducerFactory<>(producerProperties); } @Bean