Yunyung commented on code in PR #20524:
URL: https://github.com/apache/kafka/pull/20524#discussion_r2361541762
##########
clients/src/main/java/org/apache/kafka/common/header/Headers.java:
##########
@@ -49,15 +55,15 @@ public interface Headers extends Iterable<Header> {
/**
* Returns just one (the very last) header for the given key, if present.
*
- * @param key to get the last header for.
+ * @param key to get the last header for; must not be null.
* @return this last header matching the given key, returns null if not
present.
*/
Header lastHeader(String key);
/**
* Returns all headers for the given key, in the order they were added in,
if present.
*
- * @param key to return the headers for.
+ * @param key to return the headers for; must not be null.
* @return all headers for the given key, in the order they were added in,
if NO headers are present an empty iterable is returned.
*/
Iterable<Header> headers(String key);
Review Comment:
Updated. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]