TypeAdapters$h.smali
.class public final Lcom/google/gson/internal/bind/TypeAdapters$h;
.super Lcom/google/gson/b0;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/gson/internal/bind/TypeAdapters;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/gson/b0<",
"Ljava/math/BigInteger;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Lcom/google/gson/b0;-><init>()V
return-void
.end method
# virtual methods
.method public final read(Lcom/google/gson/stream/a;)Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p1}, Lcom/google/gson/stream/a;->i0()Lcom/google/gson/stream/b;
move-result-object v0
sget-object v1, Lcom/google/gson/stream/b;->NULL:Lcom/google/gson/stream/b;
if-ne v0, v1, :cond_d
.line 2
invoke-virtual {p1}, Lcom/google/gson/stream/a;->X()V
const/4 p1, 0x0
goto :goto_17
.line 3
:cond_d
:try_start_d
new-instance v0, Ljava/math/BigInteger;
invoke-virtual {p1}, Lcom/google/gson/stream/a;->c0()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/math/BigInteger;-><init>(Ljava/lang/String;)V
:try_end_16
.catch Ljava/lang/NumberFormatException; {:try_start_d .. :try_end_16} :catch_18
move-object p1, v0
:goto_17
return-object p1
:catch_18
move-exception p1
.line 4
new-instance v0, Lcom/google/gson/x;
invoke-direct {v0, p1}, Lcom/google/gson/x;-><init>(Ljava/lang/Throwable;)V
throw v0
.end method
.method public final write(Lcom/google/gson/stream/c;Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
check-cast p2, Ljava/math/BigInteger;
.line 2
invoke-virtual {p1, p2}, Lcom/google/gson/stream/c;->W(Ljava/lang/Number;)Lcom/google/gson/stream/c;
return-void
.end method