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

5
LINES

< > BotCompany Repo | #1031469 // classLoaderForObject

JavaX fragment (include)

static ClassLoader classLoaderForObject(O o) {
  if (o cast ClassLoader) ret o;
  if (o == null) null;
  ret _getClass(o).getClassLoader();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031469
Snippet name: classLoaderForObject
Eternal ID of this version: #1031469/3
Text MD5: 330fee9e6814cf9d1a75b8694dfed8bf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-14 04:41:47
Source code size: 145 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 188 / 223
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)