{"action":"created","issue":{"url":"https://api.github.com/repos/confluentinc/kafka/issues/81","labels_url":"https://api.github.com/repos/confluentinc/kafka/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/confluentinc/kafka/issues/81/comments","events_url":"https://api.github.com/repos/confluentinc/kafka/issues/81/events","html_url":"https://github.com/confluentinc/kafka/pull/81","id":118945271,"number":81,"title":"KAFKA-2892: Consumer Docs Use Wrong Method","user":{"login":"eljefe6a","id":2092991,"avatar_url":"https://avatars.githubusercontent.com/u/2092991?v=3","gravatar_id":"","url":"https://api.github.com/users/eljefe6a","html_url":"https://github.com/eljefe6a","followers_url":"https://api.github.com/users/eljefe6a/followers","following_url":"https://api.github.com/users/eljefe6a/following{/other_user}","gists_url":"https://api.github.com/users/eljefe6a/gists{/gist_id}","starred_url":"https://api.github.com/users/eljefe6a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eljefe6a/subscriptions","organizations_url":"https://api.github.com/users/eljefe6a/orgs","repos_url":"https://api.github.com/users/eljefe6a/repos","events_url":"https://api.github.com/users/eljefe6a/events{/privacy}","received_events_url":"https://api.github.com/users/eljefe6a/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-26T00:03:02Z","updated_at":"2015-11-26T01:08:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/confluentinc/kafka/pulls/81","html_url":"https://github.com/confluentinc/kafka/pull/81","diff_url":"https://github.com/confluentinc/kafka/pull/81.diff","patch_url":"https://github.com/confluentinc/kafka/pull/81.patch"},"body":"The KafkaConsumer docs use a non-existent method for assigning partitions (`consumer.assign`).\r\n\r\nThe JavaDocs show as:\r\n```\r\nString topic = \"foo\";\r\nTopicPartition partition0 = new TopicPartition(topic, 0);\r\nTopicPartition partition1 = new TopicPartition(topic, 1);\r\nconsumer.assign(partition0);\r\nconsumer.assign(partition1);\r\n```\r\n\r\nShould be:\r\n```\r\nString topic = \"foo\";\r\nTopicPartition partition0 = new TopicPartition(topic, 0);\r\nTopicPartition partition1 = new TopicPartition(topic, 1);\r\nconsumer.assign(Arrays.asList(partition0));\r\nconsumer.assign(Arrays.asList(partition1));\r\n```"},"comment":{"url":"https://api.github.com/repos/confluentinc/kafka/issues/comments/159770578","html_url":"https://github.com/confluentinc/kafka/pull/81#issuecomment-159770578","issue_url":"https://api.github.com/repos/confluentinc/kafka/issues/81","id":159770578,"user":{"login":"ewencp","id":47366,"avatar_url":"https://avatars.githubusercontent.com/u/47366?v=3","gravatar_id":"","url":"https://api.github.com/users/ewencp","html_url":"https://github.com/ewencp","followers_url":"https://api.github.com/users/ewencp/followers","following_url":"https://api.github.com/users/ewencp/following{/other_user}","gists_url":"https://api.github.com/users/ewencp/gists{/gist_id}","starred_url":"https://api.github.com/users/ewencp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewencp/subscriptions","organizations_url":"https://api.github.com/users/ewencp/orgs","repos_url":"https://api.github.com/users/ewencp/repos","events_url":"https://api.github.com/users/ewencp/events{/privacy}","received_events_url":"https://api.github.com/users/ewencp/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T01:08:37Z","updated_at":"2015-11-26T01:08:37Z","body":"LGTM"}}