svoid closeAllAndClear(Cl<? extends AutoCloseable> l) { if (l == null) ret; for (AutoCloseable c : cloneList(l)) pcall { close(c); } l.clear(); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1026413 |
| Snippet name: | closeAllAndClear |
| Eternal ID of this version: | #1026413/2 |
| Text MD5: | 5f93c49469fef0ae7677a61b47357969 |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-02 16:39:52 |
| Source code size: | 155 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 449 / 511 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |