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

7
LINES

< > BotCompany Repo | #1023051 // loadClassFromClassLoader_orNull

JavaX fragment (include)

static Class loadClassFromClassLoader_orNull(ClassLoader cl, S name) {
  try {
    ret cl == null ? null : cl.loadClass(name);
  } catch (ClassNotFoundException e) {
    null;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023051
Snippet name: loadClassFromClassLoader_orNull
Eternal ID of this version: #1023051/1
Text MD5: 57fe2f6febe483c6941a0ae791555eab
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-29 16:58:56
Source code size: 187 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 278 / 325
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)