1462 lines
39 KiB
Smali
1462 lines
39 KiB
Smali
.class public final Lcom/google/gson/Gson;
|
|
.super Ljava/lang/Object;
|
|
.source "Gson.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/gson/Gson$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final l:Lcom/google/gson/reflect/TypeToken;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/gson/reflect/TypeToken<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/lang/ThreadLocal;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ThreadLocal<",
|
|
"Ljava/util/Map<",
|
|
"Lcom/google/gson/reflect/TypeToken<",
|
|
"*>;",
|
|
"Lcom/google/gson/Gson$a<",
|
|
"*>;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final b:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Lcom/google/gson/reflect/TypeToken<",
|
|
"*>;",
|
|
"Lcom/google/gson/TypeAdapter<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final c:Lf/i/d/u/g;
|
|
|
|
.field public final d:Lf/i/d/u/z/d;
|
|
|
|
.field public final e:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lf/i/d/s;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final f:Lf/i/d/u/o;
|
|
|
|
.field public final g:Z
|
|
|
|
.field public final h:Z
|
|
|
|
.field public final i:Z
|
|
|
|
.field public final j:Z
|
|
|
|
.field public final k:Z
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const-class v0, Ljava/lang/Object;
|
|
|
|
new-instance v1, Lcom/google/gson/reflect/TypeToken;
|
|
|
|
invoke-direct {v1, v0}, Lcom/google/gson/reflect/TypeToken;-><init>(Ljava/lang/reflect/Type;)V
|
|
|
|
sput-object v1, Lcom/google/gson/Gson;->l:Lcom/google/gson/reflect/TypeToken;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 18
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
sget-object v1, Lf/i/d/u/o;->i:Lf/i/d/u/o;
|
|
|
|
sget-object v2, Lf/i/d/c;->d:Lf/i/d/c;
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v11, Lf/i/d/r;->d:Lf/i/d/r;
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object v15
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object v16
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object v17
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x2
|
|
|
|
const/4 v14, 0x2
|
|
|
|
invoke-direct/range {v0 .. v17}, Lcom/google/gson/Gson;-><init>(Lf/i/d/u/o;Lf/i/d/d;Ljava/util/Map;ZZZZZZZLf/i/d/r;Ljava/lang/String;IILjava/util/List;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lf/i/d/u/o;Lf/i/d/d;Ljava/util/Map;ZZZZZZZLf/i/d/r;Ljava/lang/String;IILjava/util/List;Ljava/util/List;Ljava/util/List;)V
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lf/i/d/u/o;",
|
|
"Lf/i/d/d;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/reflect/Type;",
|
|
"Lf/i/d/j<",
|
|
"*>;>;ZZZZZZZ",
|
|
"Lf/i/d/r;",
|
|
"Ljava/lang/String;",
|
|
"II",
|
|
"Ljava/util/List<",
|
|
"Lf/i/d/s;",
|
|
">;",
|
|
"Ljava/util/List<",
|
|
"Lf/i/d/s;",
|
|
">;",
|
|
"Ljava/util/List<",
|
|
"Lf/i/d/s;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v2, Ljava/lang/ThreadLocal;
|
|
|
|
invoke-direct {v2}, Ljava/lang/ThreadLocal;-><init>()V
|
|
|
|
iput-object v2, v0, Lcom/google/gson/Gson;->a:Ljava/lang/ThreadLocal;
|
|
|
|
new-instance v2, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-direct {v2}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
iput-object v2, v0, Lcom/google/gson/Gson;->b:Ljava/util/Map;
|
|
|
|
iput-object v1, v0, Lcom/google/gson/Gson;->f:Lf/i/d/u/o;
|
|
|
|
new-instance v2, Lf/i/d/u/g;
|
|
|
|
move-object v3, p3
|
|
|
|
invoke-direct {v2, p3}, Lf/i/d/u/g;-><init>(Ljava/util/Map;)V
|
|
|
|
iput-object v2, v0, Lcom/google/gson/Gson;->c:Lf/i/d/u/g;
|
|
|
|
move v2, p4
|
|
|
|
iput-boolean v2, v0, Lcom/google/gson/Gson;->g:Z
|
|
|
|
move v2, p6
|
|
|
|
iput-boolean v2, v0, Lcom/google/gson/Gson;->h:Z
|
|
|
|
move v2, p7
|
|
|
|
iput-boolean v2, v0, Lcom/google/gson/Gson;->i:Z
|
|
|
|
move/from16 v2, p8
|
|
|
|
iput-boolean v2, v0, Lcom/google/gson/Gson;->j:Z
|
|
|
|
move/from16 v2, p9
|
|
|
|
iput-boolean v2, v0, Lcom/google/gson/Gson;->k:Z
|
|
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->Y:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/h;->b:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-virtual {v2, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
move-object/from16 v3, p17
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->D:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->m:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->g:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->i:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->k:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/r;->d:Lf/i/d/r;
|
|
|
|
move-object/from16 v4, p11
|
|
|
|
if-ne v4, v3, :cond_0
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->t:Lcom/google/gson/TypeAdapter;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v3, Lf/i/d/g;
|
|
|
|
invoke-direct {v3}, Lf/i/d/g;-><init>()V
|
|
|
|
:goto_0
|
|
sget-object v4, Ljava/lang/Long;->TYPE:Ljava/lang/Class;
|
|
|
|
const-class v5, Ljava/lang/Long;
|
|
|
|
new-instance v6, Lf/i/d/u/z/q;
|
|
|
|
invoke-direct {v6, v4, v5, v3}, Lf/i/d/u/z/q;-><init>(Ljava/lang/Class;Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)V
|
|
|
|
invoke-virtual {v2, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v4, Ljava/lang/Double;->TYPE:Ljava/lang/Class;
|
|
|
|
const-class v5, Ljava/lang/Double;
|
|
|
|
if-eqz p10, :cond_1
|
|
|
|
sget-object v6, Lf/i/d/u/z/o;->v:Lcom/google/gson/TypeAdapter;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
new-instance v6, Lf/i/d/e;
|
|
|
|
invoke-direct {v6, p0}, Lf/i/d/e;-><init>(Lcom/google/gson/Gson;)V
|
|
|
|
:goto_1
|
|
new-instance v7, Lf/i/d/u/z/q;
|
|
|
|
invoke-direct {v7, v4, v5, v6}, Lf/i/d/u/z/q;-><init>(Ljava/lang/Class;Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)V
|
|
|
|
invoke-virtual {v2, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v4, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
|
|
|
|
const-class v5, Ljava/lang/Float;
|
|
|
|
if-eqz p10, :cond_2
|
|
|
|
sget-object v6, Lf/i/d/u/z/o;->u:Lcom/google/gson/TypeAdapter;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
new-instance v6, Lf/i/d/f;
|
|
|
|
invoke-direct {v6, p0}, Lf/i/d/f;-><init>(Lcom/google/gson/Gson;)V
|
|
|
|
:goto_2
|
|
new-instance v7, Lf/i/d/u/z/q;
|
|
|
|
invoke-direct {v7, v4, v5, v6}, Lf/i/d/u/z/q;-><init>(Ljava/lang/Class;Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)V
|
|
|
|
invoke-virtual {v2, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v4, Lf/i/d/u/z/o;->x:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v4, Lf/i/d/u/z/o;->o:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v4, Lf/i/d/u/z/o;->q:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
const-class v4, Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
new-instance v5, Lf/i/d/h;
|
|
|
|
invoke-direct {v5, v3}, Lf/i/d/h;-><init>(Lcom/google/gson/TypeAdapter;)V
|
|
|
|
invoke-virtual {v5}, Lcom/google/gson/TypeAdapter;->nullSafe()Lcom/google/gson/TypeAdapter;
|
|
|
|
move-result-object v5
|
|
|
|
new-instance v6, Lf/i/d/u/z/p;
|
|
|
|
invoke-direct {v6, v4, v5}, Lf/i/d/u/z/p;-><init>(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)V
|
|
|
|
invoke-virtual {v2, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
const-class v4, Ljava/util/concurrent/atomic/AtomicLongArray;
|
|
|
|
new-instance v5, Lf/i/d/i;
|
|
|
|
invoke-direct {v5, v3}, Lf/i/d/i;-><init>(Lcom/google/gson/TypeAdapter;)V
|
|
|
|
invoke-virtual {v5}, Lcom/google/gson/TypeAdapter;->nullSafe()Lcom/google/gson/TypeAdapter;
|
|
|
|
move-result-object v3
|
|
|
|
new-instance v5, Lf/i/d/u/z/p;
|
|
|
|
invoke-direct {v5, v4, v3}, Lf/i/d/u/z/p;-><init>(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)V
|
|
|
|
invoke-virtual {v2, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->s:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->z:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->F:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->H:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
const-class v3, Ljava/math/BigDecimal;
|
|
|
|
sget-object v4, Lf/i/d/u/z/o;->B:Lcom/google/gson/TypeAdapter;
|
|
|
|
new-instance v5, Lf/i/d/u/z/p;
|
|
|
|
invoke-direct {v5, v3, v4}, Lf/i/d/u/z/p;-><init>(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)V
|
|
|
|
invoke-virtual {v2, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
const-class v3, Ljava/math/BigInteger;
|
|
|
|
sget-object v4, Lf/i/d/u/z/o;->C:Lcom/google/gson/TypeAdapter;
|
|
|
|
new-instance v5, Lf/i/d/u/z/p;
|
|
|
|
invoke-direct {v5, v3, v4}, Lf/i/d/u/z/p;-><init>(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)V
|
|
|
|
invoke-virtual {v2, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->J:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->L:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->P:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->R:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->W:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->N:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->d:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/c;->b:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->U:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/l;->b:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/k;->b:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->S:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/a;->c:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->b:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v3, Lf/i/d/u/z/b;
|
|
|
|
iget-object v4, v0, Lcom/google/gson/Gson;->c:Lf/i/d/u/g;
|
|
|
|
invoke-direct {v3, v4}, Lf/i/d/u/z/b;-><init>(Lf/i/d/u/g;)V
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v3, Lf/i/d/u/z/g;
|
|
|
|
iget-object v4, v0, Lcom/google/gson/Gson;->c:Lf/i/d/u/g;
|
|
|
|
move v5, p5
|
|
|
|
invoke-direct {v3, v4, p5}, Lf/i/d/u/z/g;-><init>(Lf/i/d/u/g;Z)V
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v3, Lf/i/d/u/z/d;
|
|
|
|
iget-object v4, v0, Lcom/google/gson/Gson;->c:Lf/i/d/u/g;
|
|
|
|
invoke-direct {v3, v4}, Lf/i/d/u/z/d;-><init>(Lf/i/d/u/g;)V
|
|
|
|
iput-object v3, v0, Lcom/google/gson/Gson;->d:Lf/i/d/u/z/d;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
sget-object v3, Lf/i/d/u/z/o;->Z:Lf/i/d/s;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v3, Lf/i/d/u/z/j;
|
|
|
|
iget-object v4, v0, Lcom/google/gson/Gson;->c:Lf/i/d/u/g;
|
|
|
|
iget-object v5, v0, Lcom/google/gson/Gson;->d:Lf/i/d/u/z/d;
|
|
|
|
move-object v6, p2
|
|
|
|
invoke-direct {v3, v4, p2, p1, v5}, Lf/i/d/u/z/j;-><init>(Lf/i/d/u/g;Lf/i/d/d;Lf/i/d/u/o;Lf/i/d/u/z/d;)V
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-static {v2}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lcom/google/gson/Gson;->e:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Object;Lcom/google/gson/stream/JsonReader;)V
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
:try_start_0
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object p0
|
|
|
|
sget-object p1, Lcom/google/gson/stream/JsonToken;->END_DOCUMENT:Lcom/google/gson/stream/JsonToken;
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p0, Lcom/google/gson/JsonIOException;
|
|
|
|
const-string p1, "JSON document was not fully consumed."
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
:try_end_0
|
|
.catch Lcom/google/gson/stream/MalformedJsonException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
new-instance p1, Lcom/google/gson/JsonIOException;
|
|
|
|
invoke-direct {p1, p0}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw p1
|
|
|
|
:catch_1
|
|
move-exception p0
|
|
|
|
new-instance p1, Lcom/google/gson/JsonSyntaxException;
|
|
|
|
invoke-direct {p1, p0}, Lcom/google/gson/JsonSyntaxException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b(D)V
|
|
.locals 2
|
|
|
|
invoke-static {p0, p1}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-static {p0, p1}, Ljava/lang/Double;->isInfinite(D)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v1, p0, p1}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, " is not a valid double value as per JSON specification. To override this behavior, use GsonBuilder.serializeSpecialFloatingPointValues() method."
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public c(Lcom/google/gson/JsonElement;Ljava/lang/Class;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lcom/google/gson/JsonElement;",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/gson/JsonSyntaxException;
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Lf/i/d/u/z/e;
|
|
|
|
invoke-direct {v0, p1}, Lf/i/d/u/z/e;-><init>(Lcom/google/gson/JsonElement;)V
|
|
|
|
invoke-virtual {p0, v0, p2}, Lcom/google/gson/Gson;->d(Lcom/google/gson/stream/JsonReader;Ljava/lang/reflect/Type;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-static {p2}, Lf/i/d/u/t;->a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public d(Lcom/google/gson/stream/JsonReader;Ljava/lang/reflect/Type;)Ljava/lang/Object;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lcom/google/gson/stream/JsonReader;",
|
|
"Ljava/lang/reflect/Type;",
|
|
")TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/gson/JsonIOException;,
|
|
Lcom/google/gson/JsonSyntaxException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->isLenient()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {p1, v1}, Lcom/google/gson/stream/JsonReader;->setLenient(Z)V
|
|
|
|
:try_start_0
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-instance v2, Lcom/google/gson/reflect/TypeToken;
|
|
|
|
invoke-direct {v2, p2}, Lcom/google/gson/reflect/TypeToken;-><init>(Ljava/lang/reflect/Type;)V
|
|
|
|
invoke-virtual {p0, v2}, Lcom/google/gson/Gson;->f(Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p1}, Lcom/google/gson/TypeAdapter;->read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
:try_end_0
|
|
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_3
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/google/gson/stream/JsonReader;->setLenient(Z)V
|
|
|
|
return-object p2
|
|
|
|
:catchall_0
|
|
move-exception p2
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p2
|
|
|
|
:try_start_1
|
|
new-instance v1, Ljava/lang/AssertionError;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "AssertionError (GSON 2.8.5): "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/AssertionError;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2, p2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
|
|
:catch_1
|
|
move-exception p2
|
|
|
|
new-instance v1, Lcom/google/gson/JsonSyntaxException;
|
|
|
|
invoke-direct {v1, p2}, Lcom/google/gson/JsonSyntaxException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
|
|
:catch_2
|
|
move-exception p2
|
|
|
|
new-instance v1, Lcom/google/gson/JsonSyntaxException;
|
|
|
|
invoke-direct {v1, p2}, Lcom/google/gson/JsonSyntaxException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:catch_3
|
|
move-exception p2
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/google/gson/stream/JsonReader;->setLenient(Z)V
|
|
|
|
return-object p2
|
|
|
|
:cond_0
|
|
:try_start_2
|
|
new-instance v1, Lcom/google/gson/JsonSyntaxException;
|
|
|
|
invoke-direct {v1, p2}, Lcom/google/gson/JsonSyntaxException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
:goto_0
|
|
invoke-virtual {p1, v0}, Lcom/google/gson/stream/JsonReader;->setLenient(Z)V
|
|
|
|
throw p2
|
|
.end method
|
|
|
|
.method public e(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/gson/JsonSyntaxException;
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/io/StringReader;
|
|
|
|
invoke-direct {v0, p1}, Ljava/io/StringReader;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/gson/Gson;->h(Ljava/io/Reader;)Lcom/google/gson/stream/JsonReader;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/google/gson/Gson;->d(Lcom/google/gson/stream/JsonReader;Ljava/lang/reflect/Type;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Lcom/google/gson/Gson;->a(Ljava/lang/Object;Lcom/google/gson/stream/JsonReader;)V
|
|
|
|
move-object p1, v0
|
|
|
|
:goto_0
|
|
invoke-static {p2}, Lf/i/d/u/t;->a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public f(Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lcom/google/gson/reflect/TypeToken<",
|
|
"TT;>;)",
|
|
"Lcom/google/gson/TypeAdapter<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/gson/Gson;->b:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/gson/TypeAdapter;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/gson/Gson;->a:Ljava/lang/ThreadLocal;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/util/Map;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/google/gson/Gson;->a:Ljava/lang/ThreadLocal;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_1
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/google/gson/Gson$a;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
return-object v2
|
|
|
|
:cond_2
|
|
:try_start_0
|
|
new-instance v2, Lcom/google/gson/Gson$a;
|
|
|
|
invoke-direct {v2}, Lcom/google/gson/Gson$a;-><init>()V
|
|
|
|
invoke-interface {v0, p1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v3, p0, Lcom/google/gson/Gson;->e:Ljava/util/List;
|
|
|
|
invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_3
|
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lf/i/d/s;
|
|
|
|
invoke-interface {v4, p0, p1}, Lf/i/d/s;->create(Lcom/google/gson/Gson;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
iget-object v3, v2, Lcom/google/gson/Gson$a;->a:Lcom/google/gson/TypeAdapter;
|
|
|
|
if-nez v3, :cond_5
|
|
|
|
iput-object v4, v2, Lcom/google/gson/Gson$a;->a:Lcom/google/gson/TypeAdapter;
|
|
|
|
iget-object v2, p0, Lcom/google/gson/Gson;->b:Ljava/util/Map;
|
|
|
|
invoke-interface {v2, p1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iget-object p1, p0, Lcom/google/gson/Gson;->a:Ljava/lang/ThreadLocal;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/ThreadLocal;->remove()V
|
|
|
|
:cond_4
|
|
return-object v4
|
|
|
|
:cond_5
|
|
:try_start_1
|
|
new-instance v2, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {v2}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
throw v2
|
|
|
|
:cond_6
|
|
new-instance v2, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "GSON (2.8.5) cannot handle "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception v2
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
iget-object p1, p0, Lcom/google/gson/Gson;->a:Ljava/lang/ThreadLocal;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/ThreadLocal;->remove()V
|
|
|
|
:cond_7
|
|
throw v2
|
|
.end method
|
|
|
|
.method public g(Lf/i/d/s;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lf/i/d/s;",
|
|
"Lcom/google/gson/reflect/TypeToken<",
|
|
"TT;>;)",
|
|
"Lcom/google/gson/TypeAdapter<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/gson/Gson;->e:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/google/gson/Gson;->d:Lf/i/d/u/z/d;
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, p0, Lcom/google/gson/Gson;->e:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lf/i/d/s;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
if-ne v2, p1, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-interface {v2, p0, p2}, Lf/i/d/s;->create(Lcom/google/gson/Gson;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
return-object v2
|
|
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "GSON cannot serialize "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public h(Ljava/io/Reader;)Lcom/google/gson/stream/JsonReader;
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/google/gson/stream/JsonReader;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/gson/stream/JsonReader;-><init>(Ljava/io/Reader;)V
|
|
|
|
iget-boolean p1, p0, Lcom/google/gson/Gson;->k:Z
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/gson/stream/JsonReader;->setLenient(Z)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public i(Ljava/io/Writer;)Lcom/google/gson/stream/JsonWriter;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lcom/google/gson/Gson;->h:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, ")]}\'\n"
|
|
|
|
invoke-virtual {p1, v0}, Ljava/io/Writer;->write(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
new-instance v0, Lcom/google/gson/stream/JsonWriter;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/gson/stream/JsonWriter;-><init>(Ljava/io/Writer;)V
|
|
|
|
iget-boolean p1, p0, Lcom/google/gson/Gson;->j:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const-string p1, " "
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/gson/stream/JsonWriter;->setIndent(Ljava/lang/String;)V
|
|
|
|
:cond_1
|
|
iget-boolean p1, p0, Lcom/google/gson/Gson;->g:Z
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public j(Ljava/lang/Object;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
sget-object p1, Lf/i/d/n;->a:Lf/i/d/n;
|
|
|
|
new-instance v0, Ljava/io/StringWriter;
|
|
|
|
invoke-direct {v0}, Ljava/io/StringWriter;-><init>()V
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0, v0}, Lcom/google/gson/Gson;->i(Ljava/io/Writer;)Lcom/google/gson/stream/JsonWriter;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, p1, v1}, Lcom/google/gson/Gson;->k(Lcom/google/gson/JsonElement;Lcom/google/gson/stream/JsonWriter;)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
invoke-virtual {v0}, Ljava/io/StringWriter;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
new-instance v0, Lcom/google/gson/JsonIOException;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/io/StringWriter;
|
|
|
|
invoke-direct {v1}, Ljava/io/StringWriter;-><init>()V
|
|
|
|
:try_start_1
|
|
invoke-virtual {p0, v1}, Lcom/google/gson/Gson;->i(Ljava/io/Writer;)Lcom/google/gson/stream/JsonWriter;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0, p1, v0, v2}, Lcom/google/gson/Gson;->l(Ljava/lang/Object;Ljava/lang/reflect/Type;Lcom/google/gson/stream/JsonWriter;)V
|
|
:try_end_1
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
invoke-virtual {v1}, Ljava/io/StringWriter;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
new-instance v0, Lcom/google/gson/JsonIOException;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public k(Lcom/google/gson/JsonElement;Lcom/google/gson/stream/JsonWriter;)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/gson/JsonIOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonWriter;->isLenient()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {p2, v1}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
|
|
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonWriter;->isHtmlSafe()Z
|
|
|
|
move-result v1
|
|
|
|
iget-boolean v2, p0, Lcom/google/gson/Gson;->i:Z
|
|
|
|
invoke-virtual {p2, v2}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
|
|
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonWriter;->getSerializeNulls()Z
|
|
|
|
move-result v2
|
|
|
|
iget-boolean v3, p0, Lcom/google/gson/Gson;->g:Z
|
|
|
|
invoke-virtual {p2, v3}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
|
|
|
|
:try_start_0
|
|
sget-object v3, Lf/i/d/u/z/o;->X:Lcom/google/gson/TypeAdapter;
|
|
|
|
invoke-virtual {v3, p2, p1}, Lcom/google/gson/TypeAdapter;->write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {p2, v0}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
|
|
|
|
invoke-virtual {p2, v1}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
|
|
|
|
invoke-virtual {p2, v2}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
:try_start_1
|
|
new-instance v3, Ljava/lang/AssertionError;
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v5, "AssertionError (GSON 2.8.5): "
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/AssertionError;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-direct {v3, v4, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v3
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
new-instance v3, Lcom/google/gson/JsonIOException;
|
|
|
|
invoke-direct {v3, p1}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v3
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:goto_0
|
|
invoke-virtual {p2, v0}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
|
|
|
|
invoke-virtual {p2, v1}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
|
|
|
|
invoke-virtual {p2, v2}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public l(Ljava/lang/Object;Ljava/lang/reflect/Type;Lcom/google/gson/stream/JsonWriter;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/gson/JsonIOException;
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lcom/google/gson/reflect/TypeToken;
|
|
|
|
invoke-direct {v0, p2}, Lcom/google/gson/reflect/TypeToken;-><init>(Ljava/lang/reflect/Type;)V
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/gson/Gson;->f(Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p3}, Lcom/google/gson/stream/JsonWriter;->isLenient()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {p3, v1}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
|
|
|
|
invoke-virtual {p3}, Lcom/google/gson/stream/JsonWriter;->isHtmlSafe()Z
|
|
|
|
move-result v1
|
|
|
|
iget-boolean v2, p0, Lcom/google/gson/Gson;->i:Z
|
|
|
|
invoke-virtual {p3, v2}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
|
|
|
|
invoke-virtual {p3}, Lcom/google/gson/stream/JsonWriter;->getSerializeNulls()Z
|
|
|
|
move-result v2
|
|
|
|
iget-boolean v3, p0, Lcom/google/gson/Gson;->g:Z
|
|
|
|
invoke-virtual {p3, v3}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
|
|
|
|
:try_start_0
|
|
invoke-virtual {p2, p3, p1}, Lcom/google/gson/TypeAdapter;->write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {p3, v0}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
|
|
|
|
invoke-virtual {p3, v1}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
|
|
|
|
invoke-virtual {p3, v2}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
:try_start_1
|
|
new-instance p2, Ljava/lang/AssertionError;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "AssertionError (GSON 2.8.5): "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/AssertionError;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {p2, v3, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw p2
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
new-instance p2, Lcom/google/gson/JsonIOException;
|
|
|
|
invoke-direct {p2, p1}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw p2
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:goto_0
|
|
invoke-virtual {p3, v0}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
|
|
|
|
invoke-virtual {p3, v1}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
|
|
|
|
invoke-virtual {p3, v2}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "{serializeNulls:"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-boolean v1, p0, Lcom/google/gson/Gson;->g:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ",factories:"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/google/gson/Gson;->e:Ljava/util/List;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ",instanceCreators:"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/google/gson/Gson;->c:Lf/i/d/u/g;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "}"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|