static void _close(AutoCloseable c) {
if (c != null) try {
c.close();
} catch e {
// Some classes stupidly throw an exception on double-closing
if (c instanceof javax.imageio.stream.ImageOutputStream)
ret;
else throw rethrow(e);
}
}Began life as a copy of #1013362
download show line numbers debug dex old transpilations
Travelled to 18 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1013363 |
| Snippet name: | _close |
| Eternal ID of this version: | #1013363/7 |
| Text MD5: | f44654c6e12c6a16f2b2419d6e72bf28 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-30 13:39:37 |
| Source code size: | 269 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1239 / 1337 |
| Version history: | 6 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1036491 - closeOpt - close if instance of AutoCloseable |