what-the-bank/sources/org/simpleframework/xml/strategy/Loader.java

21 lines
603 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.simpleframework.xml.strategy;
/* loaded from: classes.dex */
class Loader {
public Class load(String str) throws Exception {
ClassLoader classLoader = getClassLoader();
if (classLoader == null) {
classLoader = getCallerClassLoader();
}
return classLoader.loadClass(str);
}
private static ClassLoader getCallerClassLoader() throws Exception {
return Loader.class.getClassLoader();
}
private static ClassLoader getClassLoader() throws Exception {
return Thread.currentThread().getContextClassLoader();
}
}