From d6fdbfcf15adc279c6aabd6f630eada66f2dec41 Mon Sep 17 00:00:00 2001 From: David Jacot Date: Thu, 18 Sep 2025 10:22:35 +0200 Subject: [PATCH] MINOR: Fix typos in CoordinatorRecordTypeGenerator (#20549) This patch fixes a few typos in CoordinatorRecordTypeGenerator. Reviewers: Chia-Ping Tsai , TengYao Chi , Sean Quah --- .../apache/kafka/message/CoordinatorRecordTypeGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java b/generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java index 5a7ce9c1307..5e7089d280d 100644 --- a/generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java +++ b/generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java @@ -124,11 +124,11 @@ public class CoordinatorRecordTypeGenerator implements TypeClassGenerator { for (Map.Entry entry : records.entrySet()) { MessageSpec key = entry.getValue().key; if (key == null) { - throw new RuntimeException("Coordinator record " + entry.getKey() + " has not key."); + throw new RuntimeException("Coordinator record " + entry.getKey() + " has no key."); } MessageSpec value = entry.getValue().value; if (value == null) { - throw new RuntimeException("Coordinator record " + entry.getKey() + " has not key."); + throw new RuntimeException("Coordinator record " + entry.getKey() + " has no value."); } String name = cleanName(key.name()); numProcessed++;