discord-jadx/app/src/main/java/d0/x/a.java

72 lines
2.4 KiB
Java

package d0.x;
import d0.c0.b;
import d0.c0.c;
import d0.t.k;
import d0.z.d.m;
import java.lang.reflect.Method;
/* compiled from: PlatformImplementations.kt */
/* loaded from: classes3.dex */
public class a {
/* compiled from: PlatformImplementations.kt */
/* renamed from: d0.x.a$a reason: collision with other inner class name */
/* loaded from: classes3.dex */
public static final class C0376a {
public static final Method a;
/* JADX WARN: Removed duplicated region for block: B:12:0x003e A[LOOP:0: B:3:0x000e->B:12:0x003e, LOOP_END] */
/* JADX WARN: Removed duplicated region for block: B:21:0x0042 A[EDGE_INSN: B:21:0x0042->B:14:0x0042 ?: BREAK , SYNTHETIC] */
static {
Method method;
boolean z2;
Method[] methods = Throwable.class.getMethods();
m.checkNotNullExpressionValue(methods, "throwableMethods");
int length = methods.length;
int i = 0;
while (true) {
if (i >= length) {
method = null;
break;
}
method = methods[i];
m.checkNotNullExpressionValue(method, "it");
if (m.areEqual(method.getName(), "addSuppressed")) {
Class<?>[] parameterTypes = method.getParameterTypes();
m.checkNotNullExpressionValue(parameterTypes, "it.parameterTypes");
if (m.areEqual((Class) k.singleOrNull(parameterTypes), Throwable.class)) {
z2 = true;
if (!z2) {
break;
}
i++;
}
}
z2 = false;
if (!z2) {
}
}
a = method;
for (Method method2 : methods) {
m.checkNotNullExpressionValue(method2, "it");
if (m.areEqual(method2.getName(), "getSuppressed")) {
return;
}
}
}
}
public void addSuppressed(Throwable th, Throwable th2) {
m.checkNotNullParameter(th, "cause");
m.checkNotNullParameter(th2, "exception");
Method method = C0376a.a;
if (method != null) {
method.invoke(th, th2);
}
}
public c defaultPlatformRandom() {
return new b();
}
}