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:36 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk 09b43beb1 -> 1dd558aec


MINOR: Avoiding warning about generics in sample code

Author: Tomasz Nurkiewicz <nurkiewicz@gmail.com>

Reviewers: Guozhang Wang

Closes #594 from nurkiewicz/patch-1


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

Branch: refs/heads/trunk
Commit: 1dd558aeceffdd98da83f8240cdc3bf8bc182c93
Parents: 09b43be
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:32 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/1dd558ae/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