what-the-bank/sources/o/C15068ggI.java

36 lines
1.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.lang.reflect.Method;
import java.util.concurrent.Executor;
import java.util.concurrent.ScheduledThreadPoolExecutor;
/* renamed from: o.ggI, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15068ggI {
private static final Method c;
static {
Method method;
try {
method = ScheduledThreadPoolExecutor.class.getMethod("setRemoveOnCancelPolicy", Boolean.TYPE);
} catch (Throwable unused) {
method = null;
}
c = method;
}
public static final boolean e(Executor executor) {
Method method;
try {
ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = executor instanceof ScheduledThreadPoolExecutor ? (ScheduledThreadPoolExecutor) executor : null;
if (scheduledThreadPoolExecutor == null || (method = c) == null) {
return false;
}
method.invoke(scheduledThreadPoolExecutor, Boolean.TRUE);
return true;
} catch (Throwable unused) {
return false;
}
}
}