From 0a93dd5974a8a7b86035e72ea415e243c27f2270 Mon Sep 17 00:00:00 2001 From: Michael Moyles <93867352+MichaelMoyles@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:27:53 +0100 Subject: [PATCH] GH-3408: Update javadocs (#3418) Fixes: #3408 updating KafkaMessageHeaderAccessor.getBlockingRetryDeliveryAttempt javadoc (cherry picked from commit d8de5b908b166151569f4b0f2f0e6bf9bed15cb3) --- .../kafka/support/KafkaMessageHeaderAccessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-kafka/src/main/java/org/springframework/kafka/support/KafkaMessageHeaderAccessor.java b/spring-kafka/src/main/java/org/springframework/kafka/support/KafkaMessageHeaderAccessor.java index 96975cbdd7..beecd6b66e 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/support/KafkaMessageHeaderAccessor.java +++ b/spring-kafka/src/main/java/org/springframework/kafka/support/KafkaMessageHeaderAccessor.java @@ -44,7 +44,7 @@ public KafkaMessageHeaderAccessor(Message message) { /** * Access the header value when the blocking delivery attempt header is present. - * @return 1 if there is no header present; the decoded header value otherwise. + * @return The decoded header value if the header is present. * @throws IllegalStateException if the header is not present. * @see org.springframework.kafka.listener.ContainerProperties#setDeliveryAttemptHeader(boolean) */