MCPcopy Create free account
hub / github.com/M66B/FairEmail / getContextClassLoader

Method getContextClassLoader

app/src/main/java/javax/mail/Session.java:1258–1272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1256 */
1257
1258 static ClassLoader getContextClassLoader() {
1259 return AccessController.doPrivileged(
1260 new PrivilegedAction<ClassLoader>() {
1261 @Override
1262 public ClassLoader run() {
1263 ClassLoader cl = null;
1264 try {
1265 cl = Thread.currentThread().getContextClassLoader();
1266 } catch (SecurityException ex) {
1267 }
1268 return cl;
1269 }
1270 }
1271 );
1272 }
1273
1274 private static InputStream getResourceAsStream(final Class<?> c,
1275 final String name) throws IOException {

Callers 4

getServiceMethod · 0.95
loadAllResourcesMethod · 0.95
runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected