tmap/smali_classes4/com/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry.smali
2022-06-10 21:38:30 +09:00

98 lines
2.4 KiB
Smali

.class Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;
.super Ljava/lang/Object;
.source "BinaryStreamReader.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "IdRegistry"
.end annotation
# instance fields
.field private map:Ljava/util/Map;
# direct methods
.method private constructor <init>()V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;->map:Ljava/util/Map;
return-void
.end method
.method public synthetic constructor <init>(Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$1;)V
.locals 0
.line 3
invoke-direct {p0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;-><init>()V
return-void
.end method
# virtual methods
.method public get(J)Ljava/lang/String;
.locals 2
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;->map:Ljava/util/Map;
new-instance v1, Ljava/lang/Long;
invoke-direct {v1, p1, p2}, Ljava/lang/Long;-><init>(J)V
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
if-eqz v0, :cond_0
return-object v0
.line 2
:cond_0
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
const-string v1, "Unknown ID : "
invoke-static {v1, p1, p2}, Landroidx/camera/core/l1;->a(Ljava/lang/String;J)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public put(JLjava/lang/String;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;->map:Ljava/util/Map;
new-instance v1, Ljava/lang/Long;
invoke-direct {v1, p1, p2}, Ljava/lang/Long;-><init>(J)V
invoke-interface {v0, v1, p3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method