what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzlb.java

64 lines
1.9 KiB
Java

package com.google.android.gms.internal.firebase_ml;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/* loaded from: classes2.dex */
public final class zzlb {
private static final Object zzacs;
private static final Method zzact;
private static final Method zzacu;
@Deprecated
public static RuntimeException zza(Throwable th) {
zzks.checkNotNull(th);
if (th instanceof RuntimeException) {
throw ((RuntimeException) th);
}
if (th instanceof Error) {
throw ((Error) th);
}
throw new RuntimeException(th);
}
private static Object zzih() {
try {
return Class.forName("sun.misc.SharedSecrets", false, null).getMethod("getJavaLangAccess", new Class[0]).invoke(null, new Object[0]);
} catch (ThreadDeath e) {
throw e;
} catch (Throwable unused) {
return null;
}
}
private static Method zzii() {
try {
Method zza = zza("getStackTraceDepth", Throwable.class);
if (zza == null) {
return null;
}
zza.invoke(zzih(), new Throwable());
return zza;
} catch (IllegalAccessException | UnsupportedOperationException | InvocationTargetException unused) {
return null;
}
}
private static Method zza(String str, Class<?>... clsArr) throws ThreadDeath {
try {
return Class.forName("sun.misc.JavaLangAccess", false, null).getMethod(str, clsArr);
} catch (ThreadDeath e) {
throw e;
} catch (Throwable unused) {
return null;
}
}
static {
Object zzih = zzih();
zzacs = zzih;
zzact = zzih == null ? null : zza("getStackTraceElement", Throwable.class, Integer.TYPE);
zzacu = zzih != null ? zzii() : null;
}
}