Xin Wang created KAFKA-2981:
-------------------------------

             Summary: Fix javadoc in KafkaConsumer
                 Key: KAFKA-2981
                 URL: https://issues.apache.org/jira/browse/KAFKA-2981
             Project: Kafka
          Issue Type: Bug
          Components: clients
    Affects Versions: 0.9.0.0
            Reporter: Xin Wang
            Priority: Minor


error javadoc:
{code}consumer.subscribe("topic");{code}
fix:
{code}consumer.subscribe(Arrays.asList("topic"));{code}

Since KafkaConsumer.subscribe() method uses List as the input type, using 
string "topic" will get an error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to