From f28bb221a20e7ffec2813112f150cd451040bac7 Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Thu, 2 Mar 2023 15:01:05 -0600 Subject: [PATCH] Suppress Spring Kafka deprecation warning See gh-34441 --- .../boot/autoconfigure/kafka/KafkaAutoConfiguration.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaAutoConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaAutoConfiguration.java index a063d05f12..dfe29bb2b2 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaAutoConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaAutoConfiguration.java @@ -149,6 +149,7 @@ public class KafkaAutoConfiguration { @Bean @ConditionalOnProperty(name = "spring.kafka.retry.topic.enabled") @ConditionalOnSingleCandidate(KafkaTemplate.class) + @SuppressWarnings("deprecation") public RetryTopicConfiguration kafkaRetryTopicConfiguration(KafkaTemplate kafkaTemplate) { KafkaProperties.Retry.Topic retryTopic = this.properties.getRetry().getTopic(); RetryTopicConfigurationBuilder builder = RetryTopicConfigurationBuilder.newInstance()