I prefer `1` which is the approach we use in Scala and I believe has worked out pretty well. It's annoying that Java came up with its own weird guidelines about `Optional` usage. One concrete outcome is that it doesn't implement `Serializable`. Since we only implement `Serializable` in a couple of classes, this doesn't seem like a blocker.
[ Full content available at: https://github.com/apache/kafka/pull/5564 ] This message was relayed via gitbox.apache.org for [email protected]
