- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
73 lines
2.4 KiB
Java
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();
|
|
}
|
|
}
|