Browse Source

MINOR: Add a newline to a Javadoc sample in KafkaConsumer

This PR simply adds a newline to a Javadoc sample in `KafkaConsumer` to flush the outputs.

Author: Johnny Lim <izeye@naver.com>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1390 from izeye/patch-1
pull/1447/merge
Johnny Lim 9 years ago committed by Ewen Cheslack-Postava
parent
commit
107205a7f1
  1. 2
      clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java

2
clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java

@ -195,7 +195,7 @@ import java.util.regex.Pattern; @@ -195,7 +195,7 @@ import java.util.regex.Pattern;
* while (true) {
* ConsumerRecords&lt;String, String&gt; records = consumer.poll(100);
* for (ConsumerRecord&lt;String, String&gt; record : records)
* System.out.printf(&quot;offset = %d, key = %s, value = %s&quot;, record.offset(), record.key(), record.value());
* System.out.printf(&quot;offset = %d, key = %s, value = %s%n&quot;, record.offset(), record.key(), record.value());
* }
* </pre>
*

Loading…
Cancel
Save