Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2981

Fix javadoc in KafkaConsumer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9.0.0
    • 0.9.0.1
    • clients
    • None

    Description

      error javadoc:

      consumer.subscribe("topic");

      fix:

      consumer.subscribe(Arrays.asList("topic"));

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            vesense Xin Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: