Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1036491 // closeOpt - close if instance of AutoCloseable

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (69L/1K).

svoid closeOpt(O c) {
  if (c cast AutoCloseable) _close(c);
}

Author comment

Began life as a copy of #1013363

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036491
Snippet name: closeOpt - close if instance of AutoCloseable
Eternal ID of this version: #1036491/1
Text MD5: 0f0e04dfff6e2a3e0c7271e4b101b74b
Transpilation MD5: b90b2c1d4d6b1a16128247007c08e9b7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-20 18:33:48
Source code size: 64 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 62 / 89
Referenced in: [show references]