Rabbit-R1/switch port/smali/smali_classes3/io/sentry/SentryEvent$Deserializer.smali
2024-05-21 17:08:36 -04:00

465 lines
11 KiB
Smali

.class public final Lio/sentry/SentryEvent$Deserializer;
.super Ljava/lang/Object;
.source "SentryEvent.java"
# interfaces
.implements Lio/sentry/JsonDeserializer;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/sentry/SentryEvent;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Deserializer"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lio/sentry/JsonDeserializer<",
"Lio/sentry/SentryEvent;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 310
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public deserialize(Lio/sentry/JsonObjectReader;Lio/sentry/ILogger;)Lio/sentry/SentryEvent;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 316
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->beginObject()V
.line 317
new-instance p0, Lio/sentry/SentryEvent;
invoke-direct {p0}, Lio/sentry/SentryEvent;-><init>()V
.line 320
new-instance v0, Lio/sentry/SentryBaseEvent$Deserializer;
invoke-direct {v0}, Lio/sentry/SentryBaseEvent$Deserializer;-><init>()V
const/4 v1, 0x0
.line 322
:cond_0
:goto_0
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->peek()Lio/sentry/vendor/gson/stream/JsonToken;
move-result-object v2
sget-object v3, Lio/sentry/vendor/gson/stream/JsonToken;->NAME:Lio/sentry/vendor/gson/stream/JsonToken;
if-ne v2, v3, :cond_b
.line 323
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->nextName()Ljava/lang/String;
move-result-object v2
.line 324
invoke-virtual {v2}, Ljava/lang/String;->hashCode()I
invoke-virtual {v2}, Ljava/lang/String;->hashCode()I
move-result v3
const/4 v4, -0x1
sparse-switch v3, :sswitch_data_0
goto/16 :goto_1
:sswitch_0
const-string v3, "transaction"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_1
goto/16 :goto_1
:cond_1
const/16 v4, 0x8
goto/16 :goto_1
:sswitch_1
const-string v3, "exception"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_2
goto :goto_1
:cond_2
const/4 v4, 0x7
goto :goto_1
:sswitch_2
const-string v3, "modules"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_3
goto :goto_1
:cond_3
const/4 v4, 0x6
goto :goto_1
:sswitch_3
const-string v3, "message"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_4
goto :goto_1
:cond_4
const/4 v4, 0x5
goto :goto_1
:sswitch_4
const-string v3, "level"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_5
goto :goto_1
:cond_5
const/4 v4, 0x4
goto :goto_1
:sswitch_5
const-string v3, "timestamp"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_6
goto :goto_1
:cond_6
const/4 v4, 0x3
goto :goto_1
:sswitch_6
const-string v3, "logger"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_7
goto :goto_1
:cond_7
const/4 v4, 0x2
goto :goto_1
:sswitch_7
const-string v3, "threads"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_8
goto :goto_1
:cond_8
const/4 v4, 0x1
goto :goto_1
:sswitch_8
const-string v3, "fingerprint"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_9
goto :goto_1
:cond_9
const/4 v4, 0x0
:goto_1
packed-switch v4, :pswitch_data_0
.line 370
invoke-virtual {v0, p0, v2, p1, p2}, Lio/sentry/SentryBaseEvent$Deserializer;->deserializeValue(Lio/sentry/SentryBaseEvent;Ljava/lang/String;Lio/sentry/JsonObjectReader;Lio/sentry/ILogger;)Z
move-result v3
if-nez v3, :cond_0
if-nez v1, :cond_a
.line 372
new-instance v1, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v1}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
.line 374
:cond_a
invoke-virtual {p1, p2, v1, v2}, Lio/sentry/JsonObjectReader;->nextUnknown(Lio/sentry/ILogger;Ljava/util/Map;Ljava/lang/String;)V
goto/16 :goto_0
.line 356
:pswitch_0
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->nextStringOrNull()Ljava/lang/String;
move-result-object v2
invoke-static {p0, v2}, Lio/sentry/SentryEvent;->access$602(Lio/sentry/SentryEvent;Ljava/lang/String;)Ljava/lang/String;
goto/16 :goto_0
.line 345
:pswitch_1
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->beginObject()V
.line 346
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->nextName()Ljava/lang/String;
.line 347
new-instance v2, Lio/sentry/SentryValues;
new-instance v3, Lio/sentry/protocol/SentryException$Deserializer;
invoke-direct {v3}, Lio/sentry/protocol/SentryException$Deserializer;-><init>()V
.line 349
invoke-virtual {p1, p2, v3}, Lio/sentry/JsonObjectReader;->nextListOrNull(Lio/sentry/ILogger;Lio/sentry/JsonDeserializer;)Ljava/util/List;
move-result-object v3
invoke-direct {v2, v3}, Lio/sentry/SentryValues;-><init>(Ljava/util/List;)V
.line 347
invoke-static {p0, v2}, Lio/sentry/SentryEvent;->access$402(Lio/sentry/SentryEvent;Lio/sentry/SentryValues;)Lio/sentry/SentryValues;
.line 350
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->endObject()V
goto/16 :goto_0
.line 366
:pswitch_2
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->nextObjectOrNull()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map;
.line 367
invoke-static {v2}, Lio/sentry/util/CollectionUtils;->newConcurrentHashMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v2
invoke-static {p0, v2}, Lio/sentry/SentryEvent;->access$802(Lio/sentry/SentryEvent;Ljava/util/Map;)Ljava/util/Map;
goto/16 :goto_0
.line 332
:pswitch_3
new-instance v2, Lio/sentry/protocol/Message$Deserializer;
invoke-direct {v2}, Lio/sentry/protocol/Message$Deserializer;-><init>()V
invoke-virtual {p1, p2, v2}, Lio/sentry/JsonObjectReader;->nextOrNull(Lio/sentry/ILogger;Lio/sentry/JsonDeserializer;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lio/sentry/protocol/Message;
invoke-static {p0, v2}, Lio/sentry/SentryEvent;->access$102(Lio/sentry/SentryEvent;Lio/sentry/protocol/Message;)Lio/sentry/protocol/Message;
goto/16 :goto_0
.line 353
:pswitch_4
new-instance v2, Lio/sentry/SentryLevel$Deserializer;
invoke-direct {v2}, Lio/sentry/SentryLevel$Deserializer;-><init>()V
invoke-virtual {p1, p2, v2}, Lio/sentry/JsonObjectReader;->nextOrNull(Lio/sentry/ILogger;Lio/sentry/JsonDeserializer;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lio/sentry/SentryLevel;
invoke-static {p0, v2}, Lio/sentry/SentryEvent;->access$502(Lio/sentry/SentryEvent;Lio/sentry/SentryLevel;)Lio/sentry/SentryLevel;
goto/16 :goto_0
.line 326
:pswitch_5
invoke-virtual {p1, p2}, Lio/sentry/JsonObjectReader;->nextDateOrNull(Lio/sentry/ILogger;)Ljava/util/Date;
move-result-object v2
if-eqz v2, :cond_0
.line 328
invoke-static {p0, v2}, Lio/sentry/SentryEvent;->access$002(Lio/sentry/SentryEvent;Ljava/util/Date;)Ljava/util/Date;
goto/16 :goto_0
.line 335
:pswitch_6
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->nextStringOrNull()Ljava/lang/String;
move-result-object v2
invoke-static {p0, v2}, Lio/sentry/SentryEvent;->access$202(Lio/sentry/SentryEvent;Ljava/lang/String;)Ljava/lang/String;
goto/16 :goto_0
.line 338
:pswitch_7
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->beginObject()V
.line 339
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->nextName()Ljava/lang/String;
.line 340
new-instance v2, Lio/sentry/SentryValues;
new-instance v3, Lio/sentry/protocol/SentryThread$Deserializer;
invoke-direct {v3}, Lio/sentry/protocol/SentryThread$Deserializer;-><init>()V
.line 341
invoke-virtual {p1, p2, v3}, Lio/sentry/JsonObjectReader;->nextListOrNull(Lio/sentry/ILogger;Lio/sentry/JsonDeserializer;)Ljava/util/List;
move-result-object v3
invoke-direct {v2, v3}, Lio/sentry/SentryValues;-><init>(Ljava/util/List;)V
.line 340
invoke-static {p0, v2}, Lio/sentry/SentryEvent;->access$302(Lio/sentry/SentryEvent;Lio/sentry/SentryValues;)Lio/sentry/SentryValues;
.line 342
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->endObject()V
goto/16 :goto_0
.line 359
:pswitch_8
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->nextObjectOrNull()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/List;
if-eqz v2, :cond_0
.line 361
invoke-static {p0, v2}, Lio/sentry/SentryEvent;->access$702(Lio/sentry/SentryEvent;Ljava/util/List;)Ljava/util/List;
goto/16 :goto_0
.line 379
:cond_b
invoke-virtual {p0, v1}, Lio/sentry/SentryEvent;->setUnknown(Ljava/util/Map;)V
.line 380
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->endObject()V
return-object p0
nop
:sswitch_data_0
.sparse-switch
-0x5203171c -> :sswitch_8
-0x4fbf4c57 -> :sswitch_7
-0x41680a70 -> :sswitch_6
0x3492916 -> :sswitch_5
0x6219b84 -> :sswitch_4
0x38eb0007 -> :sswitch_3
0x49292787 -> :sswitch_2
0x584fd04f -> :sswitch_1
0x7fa0d2de -> :sswitch_0
.end sparse-switch
:pswitch_data_0
.packed-switch 0x0
:pswitch_8
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public bridge synthetic deserialize(Lio/sentry/JsonObjectReader;Lio/sentry/ILogger;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 310
invoke-virtual {p0, p1, p2}, Lio/sentry/SentryEvent$Deserializer;->deserialize(Lio/sentry/JsonObjectReader;Lio/sentry/ILogger;)Lio/sentry/SentryEvent;
move-result-object p0
return-object p0
.end method