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

7
LINES

< > BotCompany Repo | #1033451 // urlToFile [seems to work]

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

Transpiled version (4521L) is out of date.

static File urlToFile(S url) ctex {
  ret urlToFile(new URL(url));
}

static File urlToFile(URL url) ctex {
  ret url == null ?: new File(url.toURI());
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033451
Snippet name: urlToFile [seems to work]
Eternal ID of this version: #1033451/4
Text MD5: 48bd1e3f43846074c0c49f59719a42a0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-28 15:12:11
Source code size: 159 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 92 / 147
Version history: 3 change(s)
Referenced in: [show references]