Browse Source

MINOR: Fix checkstyle error caused by #5781

pull/5844/head
Dong Lin 6 years ago
parent
commit
29a2921a3a
  1. 3
      clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java

3
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java

@ -1196,8 +1196,7 @@ public class KafkaProducer<K, V> implements Producer<K, V> { @@ -1196,8 +1196,7 @@ public class KafkaProducer<K, V> implements Producer<K, V> {
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.");
}
}

Loading…
Cancel
Save