alexandroid/decompiled/jadx/sources/com/bugsnag/android/ThrowableUtils.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

23 lines
1 KiB
Java

package com.bugsnag.android;
import java.util.LinkedHashSet;
import java.util.List;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.JvmName;
import org.jetbrains.annotations.NotNull;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@kotlin.Metadata(bv = {1, 0, 3}, d1 = {"\u0000\f\n\u0000\n\u0002\u0010 \n\u0002\u0010\u0003\n\u0000\u001a\u0012\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001*\u00020\u0002H\u0000¨\u0006\u0003"}, d2 = {"safeUnrollCauses", "", "", "bugsnag-android-core_release"}, k = 2, mv = {1, 4, 2})
@JvmName(name = "ThrowableUtils")
/* loaded from: classes6.dex */
public final class ThrowableUtils {
@NotNull
public static final List<Throwable> safeUnrollCauses(@NotNull Throwable th) {
th.getClass();
LinkedHashSet linkedHashSet = new LinkedHashSet();
while (th != null && linkedHashSet.add(th)) {
th = th.getCause();
}
return CollectionsKt.toList(linkedHashSet);
}
}