kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ewe...@apache.org
Subject kafka git commit: MINOR: Add a newline to a Javadoc sample in KafkaConsumer
Date Thu, 02 Jun 2016 04:51:11 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk ab7325928 -> 107205a7f


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


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/107205a7
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/107205a7
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/107205a7

Branch: refs/heads/trunk
Commit: 107205a7f17a4b1e235089668cb283bf16fbb88a
Parents: ab73259
Author: Johnny Lim <izeye@naver.com>
Authored: Wed Jun 1 21:50:45 2016 -0700
Committer: Ewen Cheslack-Postava <me@ewencp.org>
Committed: Wed Jun 1 21:50:45 2016 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/107205a7/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
----------------------------------------------------------------------
diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java b/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
index 2784644..04b41ba 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
+++ b/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
@@ -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>
  *


Mime
View raw message