Community
Participate
Working Groups
I have a code segment that does IO operations, and uses Channels to do so. I now want to surround this code with try-finally block, to close any open channels I have there. For this I need to declare the IO objects outside the try block and then, in the finally block, check that they are not null and close them. 1. I think not surrounding Closable objects with try-finally in such a way may qualify as a warning 2. There should be a quick fix to do all this.