TypeAdapters$j.smali
.class public final Lcom/google/gson/internal/bind/TypeAdapters$j;
.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/lang/StringBuffer;",
">;"
}
.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
new-instance v0, Ljava/lang/StringBuffer;
invoke-virtual {p1}, Lcom/google/gson/stream/a;->c0()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V
move-object p1, v0
:goto_17
return-object p1
.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/lang/StringBuffer;
if-nez p2, :cond_6
const/4 p2, 0x0
goto :goto_a
.line 2
:cond_6
invoke-virtual {p2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;
move-result-object p2
:goto_a
invoke-virtual {p1, p2}, Lcom/google/gson/stream/c;->X(Ljava/lang/String;)Lcom/google/gson/stream/c;
return-void
.end method