I've added that check because `context.valueSerde()` (called elsewhere) could 
return null.

If it's ok with you, though, I prefer the current code right here. This code 
ensures that `valSerde` is of the correct type (notice that no casting is 
necessary). In general, I think we should avoid casting unless we actually need 
it, as it makes regressions harder to catch.

[ Full content available at: https://github.com/apache/kafka/pull/5693 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to