'Misuse' of Resource#getFile()

Ian Young ian at iay.org.uk
Wed Dec 30 07:01:31 EST 2015


> On 30 Dec 2015, at 10:59, Rod Widdowson <rdw at steadingsoftware.com> wrote:
> 
> As a secondary question should these functions close their InputStream – a
> common paradigm appears to be that they should not, but I’d take guidance.

I'd lean towards opener-must-close, and use the try-with-resource construct to enforce it.

    -- Ian




-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3563 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/dev/attachments/20151230/2ef64abe/attachment.p7s>


More information about the dev mailing list