Good idea, setting it to null after I use it will make it available for gc.

I can guard against null also, but fwiw, I'm not sure how that situation could 
arise. It's an `IllegalStateException` to invoke  `delegate.remove` without an 
intervening call `delegate.next`. Or to call it before `next`.
`delegate.next` could return null, but in that case, we'd get an exception in 
line 69... which I should check for there.



[ 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