Files
rr3-apk/decompiled/sources/kotlin/internal/jdk7/JDK7PlatformImplementations.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

52 lines
1.6 KiB
Java

package kotlin.internal.jdk7;
import kotlin.internal.PlatformImplementations;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes5.dex */
public abstract class JDK7PlatformImplementations extends PlatformImplementations {
public static final class ReflectSdkVersion {
public static final ReflectSdkVersion INSTANCE = new ReflectSdkVersion();
public static final Integer sdkVersion;
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 i) {
Integer num = ReflectSdkVersion.sdkVersion;
return num == null || num.intValue() >= i;
}
@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);
}
}
}