106 lines
2.4 KiB
Smali
106 lines
2.4 KiB
Smali
.class final Lcom/google/gson/Gson$2;
|
|
.super Lcom/google/gson/TypeAdapter;
|
|
.source "Gson.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/gson/Gson;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/gson/TypeAdapter<",
|
|
"Ljava/lang/Number;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic aQz:Lcom/google/gson/Gson;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/google/gson/Gson;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/google/gson/Gson$2;->aQz:Lcom/google/gson/Gson;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/TypeAdapter;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final synthetic read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/google/gson/stream/JsonToken;->NULL:Lcom/google/gson/stream/JsonToken;
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->nextNull()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->nextDouble()D
|
|
|
|
move-result-wide v0
|
|
|
|
double-to-float p1, v0
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final synthetic write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
check-cast p2, Ljava/lang/Number;
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonWriter;->nullValue()Lcom/google/gson/stream/JsonWriter;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p2}, Ljava/lang/Number;->floatValue()F
|
|
|
|
move-result v0
|
|
|
|
float-to-double v0, v0
|
|
|
|
invoke-static {v0, v1}, Lcom/google/gson/Gson;->d(D)V
|
|
|
|
invoke-virtual {p1, p2}, Lcom/google/gson/stream/JsonWriter;->value(Ljava/lang/Number;)Lcom/google/gson/stream/JsonWriter;
|
|
|
|
return-void
|
|
.end method
|