chia7712 commented on code in PR #24241:
URL: https://github.com/apache/kafka/pull/24241#discussion_r4578991998


##########
clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java:
##########
@@ -900,6 +900,10 @@ public void unsubscribe() {
      * the previous pattern of passing a listener to the {@code subscribe()} 
methods (which are now deprecated).
      *
      * <p>
+     * The listener is only invoked when the consumer uses group management 
through {@code subscribe()}.
+     * Calling this method does not throw if the consumer does not use group 
management.

Review Comment:
   I'm not a native speaker, but the "does not throw" phrasing is hard to 
understand right away. Could you rewrite it using a "positive" description?



-- 
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]

Reply via email to