正在查看: Aisle v12.32 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aisle v12.32 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package K8;
import H8.p;
import H8.w;
import java.lang.Thread;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
public abstract class c implements p {
private ScheduledThreadPoolExecutor a;
class a extends ScheduledThreadPoolExecutor {
a(int i, ThreadFactory threadFactory) {
super(i, threadFactory);
}
@Override
protected void afterExecute(Runnable runnable, Throwable th) {
super.afterExecute(runnable, th);
if (th == null && (runnable instanceof Future)) {
Future future = (Future) runnable;
try {
if (future.isDone()) {
future.get();
}
} catch (InterruptedException unused) {
Thread.currentThread().interrupt();
} catch (CancellationException unused2) {
} catch (ExecutionException e) {
th = e.getCause();
}
}
if (th != null) {
c.this.f(th);
}
}
}
private class b implements ThreadFactory {
class a implements Thread.UncaughtExceptionHandler {
a() {
}
@Override
public void uncaughtException(Thread thread, Throwable th) {
c.this.f(th);
}
}
private b() {
}
@Override
public Thread newThread(Runnable runnable) {
Thread newThread = c.this.d().newThread(runnable);
w e = c.this.e();
e.a(newThread, "FirebaseDatabaseWorker");
e.b(newThread, true);
e.c(newThread, new a());
return newThread;
}
b(c cVar, a aVar) {
this();
}
}
public c() {
a aVar = new a(1, new b(this, null));
this.a = aVar;
aVar.setKeepAliveTime(3L, TimeUnit.SECONDS);
}
public static String g(Throwable th) {
if (th instanceof OutOfMemoryError) {
return "Firebase Database encountered an OutOfMemoryError. You may need to reduce the amount of data you are syncing to the client (e.g. by using queries or syncing a deeper path). See https://firebase.google.com/docs/database/ios/structure-data#best_practices_for_data_structure and https://firebase.google.com/docs/database/android/retrieve-data#filtering_data";
}
if (th instanceof NoClassDefFoundError) {
return "A symbol that the Firebase Database SDK depends on failed to load. This usually indicates that your project includes an incompatible version of another Firebase dependency. If updating your dependencies to the latest version does not resolve this issue, please file a report at https://github.com/firebase/firebase-android-sdk";
}
if (th instanceof C8.b) {
return "";
}
return "Uncaught exception in Firebase Database runloop (" + com.google.firebase.database.c.f() + "). If you are not already on the latest version of the Firebase SDKs, try updating your dependencies. Should this problem persist, please file a report at https://github.com/firebase/firebase-android-sdk";
}
@Override
public void a() {
this.a.setCorePoolSize(1);
}
@Override
public void b(Runnable runnable) {
this.a.execute(runnable);
}
public ScheduledExecutorService c() {
return this.a;
}
protected ThreadFactory d() {
return Executors.defaultThreadFactory();
}
protected w e() {
return w.a;
}
public abstract void f(Throwable th);
}