package j.n0.d;

import j.p0.d.r;

/* JADX INFO: compiled from: JDK7PlatformImplementations.kt */
/* JADX INFO: loaded from: classes.dex */
public class a extends j.n0.a {

    /* JADX INFO: renamed from: j.n0.d.a$a, reason: collision with other inner class name */
    /* JADX INFO: compiled from: JDK7PlatformImplementations.kt */
    private static final class C0084a {
        public static final Integer a;

        static {
            Object obj;
            Integer num = null;
            try {
                obj = Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null);
            } catch (Throwable unused) {
            }
            Integer num2 = obj instanceof Integer ? (Integer) obj : null;
            if (num2 != null) {
                if (num2.intValue() > 0) {
                    num = num2;
                }
            }
            a = num;
        }
    }

    private final boolean b(int i2) {
        Integer num = C0084a.a;
        return num == null || num.intValue() >= i2;
    }

    @Override // j.n0.a
    public void a(Throwable th, Throwable th2) {
        r.f(th, "cause");
        r.f(th2, "exception");
        if (b(19)) {
            th.addSuppressed(th2);
        } else {
            super.a(th, th2);
        }
    }
}
