Hello, 
in this case, the `try-with-resources` will just close the resources that are 
`non-null`

```
...the try block executes as normal and then all non-null resources of the 
try-with-resources statement are closed.
```
From: https://docs.oracle.com/javase/specs/jls/se8/html/jls-14.html#jls-14.20.3

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

Reply via email to