Repository: kafka Updated Branches: refs/heads/trunk 0a7f2bf33 -> a1efe6332
MINOR: Fix javadoc for `PartitionInfo.leader()` Author: Ismael Juma <[email protected]> Reviewers: Guozhang Wang Closes #789 from ijuma/fix-partition-info-leader-doc Project: http://git-wip-us.apache.org/repos/asf/kafka/repo Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/a1efe633 Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/a1efe633 Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/a1efe633 Branch: refs/heads/trunk Commit: a1efe633207312d63897ad27953a324d1874fa6b Parents: 0a7f2bf Author: Ismael Juma <[email protected]> Authored: Tue Jan 19 09:17:47 2016 -0800 Committer: Guozhang Wang <[email protected]> Committed: Tue Jan 19 09:17:47 2016 -0800 ---------------------------------------------------------------------- clients/src/main/java/org/apache/kafka/common/PartitionInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kafka/blob/a1efe633/clients/src/main/java/org/apache/kafka/common/PartitionInfo.java ---------------------------------------------------------------------- diff --git a/clients/src/main/java/org/apache/kafka/common/PartitionInfo.java b/clients/src/main/java/org/apache/kafka/common/PartitionInfo.java index 321da8a..8344990 100644 --- a/clients/src/main/java/org/apache/kafka/common/PartitionInfo.java +++ b/clients/src/main/java/org/apache/kafka/common/PartitionInfo.java @@ -46,7 +46,7 @@ public class PartitionInfo { } /** - * The node id of the node currently acting as a leader for this partition or -1 if there is no leader + * The node id of the node currently acting as a leader for this partition or null if there is no leader */ public Node leader() { return leader;
