正在查看: Zepto v25.1.4 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Zepto v25.1.4 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package io.sentry;
import io.sentry.util.IntegrationUtils;
import io.sentry.util.Platform;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.util.zip.GZIPOutputStream;
public final class a implements Runnable {
public final int a;
public final Object b;
public final Object c;
public a(int i2, Object obj, Object obj2) {
this.a = i2;
this.b = obj;
this.c = obj2;
}
@Override
public final void run() {
int i2 = this.a;
Object obj = this.c;
Object obj2 = this.b;
switch (i2) {
case 0:
((DefaultTransactionPerformanceCollector) obj2).c((ITransaction) obj);
return;
case 1:
((ISentryExecutorService) obj).b(((Hub) obj2).a.getShutdownTimeoutMillis());
return;
case 2:
((IHub) obj2).o(((SentryOptions) obj).getFlushTimeoutMillis());
return;
case 3:
ShutdownHookIntegration shutdownHookIntegration = (ShutdownHookIntegration) obj2;
shutdownHookIntegration.a.addShutdownHook(shutdownHookIntegration.b);
((SentryOptions) obj).getLogger().c(SentryLevel.DEBUG, "ShutdownHookIntegration installed.", new Object[0]);
IntegrationUtils.a(ShutdownHookIntegration.class);
return;
default:
SpotlightIntegration spotlightIntegration = (SpotlightIntegration) obj2;
SentryEnvelope sentryEnvelope = (SentryEnvelope) obj;
spotlightIntegration.getClass();
try {
SentryOptions sentryOptions = spotlightIntegration.a;
if (sentryOptions == null) {
throw new IllegalArgumentException("SentryOptions are required to send envelopes.");
}
HttpURLConnection d2 = SpotlightIntegration.d(sentryOptions.getSpotlightConnectionUrl() != null ? spotlightIntegration.a.getSpotlightConnectionUrl() : Platform.a ? "http://10.0.2.2:8969/stream" : "http://localhost:8969/stream");
try {
OutputStream outputStream = d2.getOutputStream();
try {
GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(outputStream);
try {
spotlightIntegration.a.getSerializer().c(sentryEnvelope, gZIPOutputStream);
gZIPOutputStream.close();
if (outputStream != null) {
outputStream.close();
}
spotlightIntegration.b.c(SentryLevel.DEBUG, "Envelope sent to spotlight: %d", Integer.valueOf(d2.getResponseCode()));
} finally {
}
} finally {
}
} catch (Throwable th) {
try {
spotlightIntegration.b.b(SentryLevel.ERROR, "An exception occurred while submitting the envelope to the Sentry server.", th);
spotlightIntegration.b.c(SentryLevel.DEBUG, "Envelope sent to spotlight: %d", Integer.valueOf(d2.getResponseCode()));
} catch (Throwable th2) {
spotlightIntegration.b.c(SentryLevel.DEBUG, "Envelope sent to spotlight: %d", Integer.valueOf(d2.getResponseCode()));
SpotlightIntegration.b(d2);
throw th2;
}
}
SpotlightIntegration.b(d2);
return;
} catch (Exception e2) {
spotlightIntegration.b.b(SentryLevel.ERROR, "An exception occurred while creating the connection to spotlight.", e2);
return;
}
}
}
}