Skip to content

Commit de5383f

Browse files
authored
Remove duplicate producerProperties declaration in kafkaProducerFactory (#3605)
1 parent 4ccc63c commit de5383f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/interceptors.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ public class Application {
3030
Map<String, Object> producerProperties = new HashMap<>();
3131
// producerProperties.put(..., ...)
3232
// ...
33-
Map<String, Object> producerProperties = properties.buildProducerProperties();
3433
producerProperties.put(ProducerConfig.INTERCEPTOR_CLASSES_CONFIG, MyProducerInterceptor.class.getName());
3534
producerProperties.put("some.bean", someBean);
36-
DefaultKafkaProducerFactory<?, ?> factory = new DefaultKafkaProducerFactory<>(producerProperties);
37-
return factory;
35+
return new DefaultKafkaProducerFactory<>(producerProperties);
3836
}
3937
4038
@Bean

0 commit comments

Comments
 (0)