kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guozh...@apache.org
Subject kafka git commit: MINOR: Avoiding warning about generics in sample code
Date Fri, 27 Nov 2015 20:24:43 GMT
Repository: kafka
Updated Branches:
  refs/heads/0.9.0 60c44801c -> e934a107f


MINOR: Avoiding warning about generics in sample code

Author: Tomasz Nurkiewicz <nurkiewicz@gmail.com>

Reviewers: Guozhang Wang

Closes #594 from nurkiewicz/patch-1

(cherry picked from commit 1dd558aeceffdd98da83f8240cdc3bf8bc182c93)
Signed-off-by: Guozhang Wang <wangguoz@gmail.com>


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

Branch: refs/heads/0.9.0
Commit: e934a107f8e79a1169c02fb326014fcf91e9ceb5
Parents: 60c4480
Author: Tomasz Nurkiewicz <nurkiewicz@gmail.com>
Authored: Fri Nov 27 12:24:32 2015 -0800
Committer: Guozhang Wang <wangguoz@gmail.com>
Committed: Fri Nov 27 12:24:40 2015 -0800

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


http://git-wip-us.apache.org/repos/asf/kafka/blob/e934a107/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java
----------------------------------------------------------------------
diff --git a/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java b/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java
index 21d635b..8586439 100644
--- a/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java
+++ b/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java
@@ -76,7 +76,7 @@ import org.slf4j.LoggerFactory;
  * props.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer");
  * props.put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer");
  *
- * Producer<String, String> producer = new KafkaProducer(props);
+ * Producer<String, String> producer = new KafkaProducer<>(props);
  * for(int i = 0; i < 100; i++)
  *     producer.send(new ProducerRecord<String, String>("my-topic", Integer.toString(i),
Integer.toString(i)));
  *


Mime
View raw message