mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
74 lines
3.8 KiB
Java
74 lines
3.8 KiB
Java
package kotlin.internal.jdk7;
|
|
|
|
import io.sentry.SentryEvent;
|
|
import java.util.List;
|
|
import kotlin.Metadata;
|
|
import kotlin.collections.ArraysKt;
|
|
import kotlin.internal.PlatformImplementations;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: JDK7PlatformImplementations.kt */
|
|
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0002\b\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0010\u0018\u00002\u00020\u0001:\u0001\u000eB\u0005¢\u0006\u0002\u0010\u0002J\u0018\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u0006H\u0016J\u0016\u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00060\t2\u0006\u0010\u0007\u001a\u00020\u0006H\u0016J\u0010\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\rH\u0002¨\u0006\u000f"}, d2 = {"Lkotlin/internal/jdk7/JDK7PlatformImplementations;", "Lkotlin/internal/PlatformImplementations;", "()V", "addSuppressed", "", "cause", "", SentryEvent.JsonKeys.EXCEPTION, "getSuppressed", "", "sdkIsNullOrAtLeast", "", "version", "", "ReflectSdkVersion", "kotlin-stdlib-jdk7"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public class JDK7PlatformImplementations extends PlatformImplementations {
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
/* compiled from: JDK7PlatformImplementations.kt */
|
|
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\bÂ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0014\u0010\u0003\u001a\u0004\u0018\u00010\u00048\u0006X\u0087\u0004¢\u0006\u0004\n\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/internal/jdk7/JDK7PlatformImplementations$ReflectSdkVersion;", "", "()V", "sdkVersion", "", "Ljava/lang/Integer;", "kotlin-stdlib-jdk7"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public static final class ReflectSdkVersion {
|
|
public static final ReflectSdkVersion INSTANCE = new ReflectSdkVersion();
|
|
public static final Integer sdkVersion;
|
|
|
|
private ReflectSdkVersion() {
|
|
}
|
|
|
|
static {
|
|
Integer num;
|
|
Object obj;
|
|
Integer num2 = null;
|
|
try {
|
|
obj = Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null);
|
|
} catch (Throwable unused) {
|
|
}
|
|
if (obj instanceof Integer) {
|
|
num = (Integer) obj;
|
|
if (num != null && num.intValue() > 0) {
|
|
num2 = num;
|
|
}
|
|
sdkVersion = num2;
|
|
}
|
|
num = null;
|
|
if (num != null) {
|
|
num2 = num;
|
|
}
|
|
sdkVersion = num2;
|
|
}
|
|
}
|
|
|
|
private final boolean sdkIsNullOrAtLeast(int version) {
|
|
return ReflectSdkVersion.sdkVersion == null || ReflectSdkVersion.sdkVersion.intValue() >= version;
|
|
}
|
|
|
|
@Override // kotlin.internal.PlatformImplementations
|
|
public void addSuppressed(Throwable cause, Throwable exception) {
|
|
Intrinsics.checkNotNullParameter(cause, "cause");
|
|
Intrinsics.checkNotNullParameter(exception, "exception");
|
|
if (sdkIsNullOrAtLeast(19)) {
|
|
cause.addSuppressed(exception);
|
|
} else {
|
|
super.addSuppressed(cause, exception);
|
|
}
|
|
}
|
|
|
|
@Override // kotlin.internal.PlatformImplementations
|
|
public List<Throwable> getSuppressed(Throwable exception) {
|
|
Intrinsics.checkNotNullParameter(exception, "exception");
|
|
if (sdkIsNullOrAtLeast(19)) {
|
|
Throwable[] suppressed = exception.getSuppressed();
|
|
Intrinsics.checkNotNullExpressionValue(suppressed, "getSuppressed(...)");
|
|
return ArraysKt.asList(suppressed);
|
|
}
|
|
return super.getSuppressed(exception);
|
|
}
|
|
}
|