Skip to content

Commit 17b738e

Browse files
committed
GH-2134: Doc and Javadoc Polishihg
1 parent 66b91de commit 17b738e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Diff for: spring-kafka-docs/src/main/asciidoc/whats-new.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ See the note at the end of <<batch-listeners>> for more information.
4646

4747
The `@KafkaListener` annotation now has the `filter` attribute, to override the container factory's `RecordFilterStrategy` for just this listener.
4848

49-
The `@KafkaListener` annotation now the "info" attribute; this is used to populate the new listener container property `listenerInfo`.
49+
The `@KafkaListener` annotation now has the `info` attribute; this is used to populate the new listener container property `listenerInfo`.
5050
This is then used to populate a `KafkaHeaders.LISTENER_INFO` header in each record which can be used in `RecordInterceptor`, `RecordFilterStrategy`, or the listener itself.
5151
See <<li-header>> and <<alc-props,Abstract Listener Container Properties>> for more information.
5252

Diff for: spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListener.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,14 @@
310310

311311
/**
312312
* Static information that will be added as a header with key
313-
* {@link org.springframework.kafka.support.KafkaHeaders#LISTENER_INFO}. This can be used, for example, in a
314-
* {@link org.springframework.kafka.listener.RecordInterceptor}, {@link RecordFiorg.springframework.kafka.listener.adapter.RecordFilterStrategylterStrategy} or the listener itself, for
315-
* any purposes.
313+
* {@link org.springframework.kafka.support.KafkaHeaders#LISTENER_INFO}. This can be
314+
* used, for example, in a
315+
* {@link org.springframework.kafka.listener.RecordInterceptor},
316+
* {@link org.springframework.kafka.listener.adapter.RecordFilterStrategy} or the
317+
* listener itself, for any purposes.
316318
* <p>
317319
* SpEL {@code #{...}} and property place holders {@code ${...}} are supported, but it
318-
* must resolve to a String or `byte[]`.
320+
* must resolve to a String or {@code byte[]}.
319321
* <p>
320322
* This header will be stripped out if an outbound record is created with the headers
321323
* from an input record.

0 commit comments

Comments
 (0)