From 51d99ef5599908de377881dbe7c16abf1a00c76c Mon Sep 17 00:00:00 2001 From: Ming-Yen Chung Date: Thu, 4 Dec 2025 23:30:21 +0800 Subject: [PATCH] Fix leader param description in TopicPartitionInfo --- .../main/java/org/apache/kafka/common/TopicPartitionInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/src/main/java/org/apache/kafka/common/TopicPartitionInfo.java b/clients/src/main/java/org/apache/kafka/common/TopicPartitionInfo.java index 73d7a27d9468f..88fb5260d8cbf 100644 --- a/clients/src/main/java/org/apache/kafka/common/TopicPartitionInfo.java +++ b/clients/src/main/java/org/apache/kafka/common/TopicPartitionInfo.java @@ -37,7 +37,7 @@ public class TopicPartitionInfo { * Create an instance of this class with the provided parameters. * * @param partition the partition id - * @param leader the leader of the partition or {@link Node#noNode()} if there is none. + * @param leader the leader of the partition or null if there is none. * @param replicas the replicas of the partition in the same order as the replica assignment (the preferred replica * is the head of the list) * @param isr the in-sync replicas