1 | static void _close(AutoCloseable c) { |
2 | if (c != null) try { |
3 | c.close(); |
4 | } catch e { |
5 | // Some classes stupidly throw an exception on double-closing |
6 | if (c instanceof javax.imageio.stream.ImageOutputStream) |
7 | ret; |
8 | else throw rethrow(e); |
9 | } |
10 | } |
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: | 516 / 617 |
Version history: | 6 change(s) |
Referenced in: | [show references] |