From 29a2921a3a93800f7cc1fcf97118e512961f8beb Mon Sep 17 00:00:00 2001 From: Dong Lin Date: Thu, 25 Oct 2018 16:29:01 -0700 Subject: [PATCH] MINOR: Fix checkstyle error caused by #5781 --- .../java/org/apache/kafka/clients/producer/KafkaProducer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java b/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java index 3fcb2c1028f..f1ccf223b83 100644 --- a/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java +++ b/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java @@ -1196,8 +1196,7 @@ public class KafkaProducer implements Producer { if (entry.getKey() instanceof String) { String k = (String) entry.getKey(); map.put(k, properties.get(k)); - } - else { + } else { throw new ConfigException(entry.getKey().toString(), entry.getValue(), "Key must be a string."); } }