discord-jadx/app/src/main/java/com/google/common/util/concurrent/CycleDetectingLockFactory.java

52 lines
1.5 KiB
Java

package com.google.common.util.concurrent;
import c.i.b.b.d0;
import c.i.b.b.e0;
import c.i.b.b.z;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.util.ArrayList;
import java.util.logging.Logger;
@CanIgnoreReturnValue
public class CycleDetectingLockFactory {
public static final class PotentialDeadlockException extends b {
private final b conflictingStackTrace;
@Override // java.lang.Throwable
public String getMessage() {
StringBuilder sb = new StringBuilder(super.getMessage());
for (Throwable th = this.conflictingStackTrace; th != null; th = th.getCause()) {
sb.append(", ");
sb.append(th.getMessage());
}
return sb.toString();
}
}
public static class a extends ThreadLocal<ArrayList<c>> {
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // java.lang.ThreadLocal
public ArrayList<c> initialValue() {
c.i.a.f.e.o.c.n(3, "initialArraySize");
return new ArrayList<>(3);
}
}
public static class b extends IllegalStateException {
static {
z.t(CycleDetectingLockFactory.class.getName(), b.class.getName(), c.class.getName());
}
}
public static class c {
}
static {
d0 d0Var = new d0();
d0Var.d(e0.p.WEAK);
d0Var.c();
Logger.getLogger(CycleDetectingLockFactory.class.getName());
new a();
}
}