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

5
LINES

< > BotCompany Repo | #1036213 // assertURL

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

Libraryless. Click here for Pure Java version (9251L/51K).

sS assertURL(S s) {
  if (!isURL(s))
    fail("Not a URL: " + quote(s));
  ret s;
}

Author comment

Began life as a copy of #1008538

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036213
Snippet name: assertURL
Eternal ID of this version: #1036213/1
Text MD5: d0ac4fd53c2cbe234d8981ebec4460a1
Transpilation MD5: 6f3618024074b189b4e052bc2c34769f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-10-22 07:17:05
Source code size: 87 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 57 / 80
Referenced in: [show references]