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

5
LINES

< > BotCompany Repo | #1028838 // deepReturn

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

Libraryless. Click here for Pure Java version (2581L/16K).

static <A> RuntimeException deepReturn(DeepReturnSite<A> site, A value) {
  if (site.closed) fail("deep return site is out of scope");
  site.set(value);
  throw new DeepReturn(site);
}

Author comment

Began life as a copy of #1018340

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: #1028838
Snippet name: deepReturn
Eternal ID of this version: #1028838/1
Text MD5: 339f2b426e8ae359d2f2324d16b9e9b1
Transpilation MD5: c2e697712cd15b947cc5e33e1c84d782
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-09 15:20:54
Source code size: 189 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 213 / 295
Referenced in: [show references]