Files
rr3-apk/decompiled/sources/kotlin/internal/PlatformImplementations.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

73 lines
2.4 KiB
Java

package kotlin.internal;
import java.lang.reflect.Method;
import kotlin.collections.ArraysKt___ArraysKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.random.FallbackThreadLocalRandom;
import kotlin.random.Random;
/* loaded from: classes5.dex */
public abstract class PlatformImplementations {
public static final class ReflectThrowable {
public static final ReflectThrowable INSTANCE = new ReflectThrowable();
public static final Method addSuppressed;
public static final Method getSuppressed;
static {
Method method;
Method method2;
Object singleOrNull;
Method[] methods = Throwable.class.getMethods();
Intrinsics.checkNotNull(methods);
int length = methods.length;
int i = 0;
int i2 = 0;
while (true) {
method = null;
if (i2 >= length) {
method2 = null;
break;
}
method2 = methods[i2];
if (Intrinsics.areEqual(method2.getName(), "addSuppressed")) {
Class<?>[] parameterTypes = method2.getParameterTypes();
Intrinsics.checkNotNullExpressionValue(parameterTypes, "getParameterTypes(...)");
singleOrNull = ArraysKt___ArraysKt.singleOrNull(parameterTypes);
if (Intrinsics.areEqual(singleOrNull, Throwable.class)) {
break;
}
}
i2++;
}
addSuppressed = method2;
int length2 = methods.length;
while (true) {
if (i >= length2) {
break;
}
Method method3 = methods[i];
if (Intrinsics.areEqual(method3.getName(), "getSuppressed")) {
method = method3;
break;
}
i++;
}
getSuppressed = method;
}
}
public void addSuppressed(Throwable cause, Throwable exception) {
Intrinsics.checkNotNullParameter(cause, "cause");
Intrinsics.checkNotNullParameter(exception, "exception");
Method method = ReflectThrowable.addSuppressed;
if (method != null) {
method.invoke(cause, exception);
}
}
public Random defaultPlatformRandom() {
return new FallbackThreadLocalRandom();
}
}