nit: seems like a better practice to use the same iterator instance for both 
`hasNext` and `next`. The construction of the iterator does do a little work. 
Same thing for the other checks.

Also, the `hasNext` check below is now redundant.

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

Reply via email to