You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Charly Molter (JIRA)" <ji...@apache.org> on 2017/11/07 11:18:01 UTC
[jira] [Created] (KAFKA-6180) AbstractConfig.getList() should never
return null
Charly Molter created KAFKA-6180:
------------------------------------
Summary: AbstractConfig.getList() should never return null
Key: KAFKA-6180
URL: https://issues.apache.org/jira/browse/KAFKA-6180
Project: Kafka
Issue Type: Improvement
Components: config
Affects Versions: 1.0.0, 0.11.0.0, 0.10.2.1, 0.10.2.0, 0.10.1.1, 0.10.1.0
Reporter: Charly Molter
Priority: Trivial
AbstractConfig.getList returns null if the property is unset and there's no default.
This creates a lot of cases where we need to do null checks (and remember them).
It's good practice to just return an empty list as usually code naturally handles empty lists.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)