2997 lines
68 KiB
Smali
2997 lines
68 KiB
Smali
.class public abstract Lj0/e0;
|
|
.super Ljava/lang/Object;
|
|
.source "ServiceMethod.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Lj0/d0;Ljava/lang/reflect/Method;)Lj0/e0;
|
|
.locals 23
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lj0/d0;",
|
|
"Ljava/lang/reflect/Method;",
|
|
")",
|
|
"Lj0/e0<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
new-instance v2, Lj0/a0$a;
|
|
|
|
invoke-direct {v2, v0, v1}, Lj0/a0$a;-><init>(Lj0/d0;Ljava/lang/reflect/Method;)V
|
|
|
|
iget-object v3, v2, Lj0/a0$a;->c:[Ljava/lang/annotation/Annotation;
|
|
|
|
array-length v4, v3
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
:goto_0
|
|
const-string v7, "HEAD"
|
|
|
|
const/4 v8, 0x1
|
|
|
|
if-ge v6, v4, :cond_f
|
|
|
|
aget-object v9, v3, v6
|
|
|
|
instance-of v10, v9, Lj0/k0/b;
|
|
|
|
if-eqz v10, :cond_0
|
|
|
|
check-cast v9, Lj0/k0/b;
|
|
|
|
invoke-interface {v9}, Lj0/k0/b;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "DELETE"
|
|
|
|
invoke-virtual {v2, v8, v7, v5}, Lj0/a0$a;->b(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_0
|
|
instance-of v10, v9, Lj0/k0/e;
|
|
|
|
if-eqz v10, :cond_1
|
|
|
|
check-cast v9, Lj0/k0/e;
|
|
|
|
invoke-interface {v9}, Lj0/k0/e;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "GET"
|
|
|
|
invoke-virtual {v2, v8, v7, v5}, Lj0/a0$a;->b(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_1
|
|
instance-of v10, v9, Lj0/k0/f;
|
|
|
|
if-eqz v10, :cond_2
|
|
|
|
check-cast v9, Lj0/k0/f;
|
|
|
|
invoke-interface {v9}, Lj0/k0/f;->value()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v2, v7, v8, v5}, Lj0/a0$a;->b(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_2
|
|
instance-of v7, v9, Lj0/k0/l;
|
|
|
|
if-eqz v7, :cond_3
|
|
|
|
check-cast v9, Lj0/k0/l;
|
|
|
|
invoke-interface {v9}, Lj0/k0/l;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v9, "PATCH"
|
|
|
|
invoke-virtual {v2, v9, v7, v8}, Lj0/a0$a;->b(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_3
|
|
instance-of v7, v9, Lj0/k0/m;
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
check-cast v9, Lj0/k0/m;
|
|
|
|
invoke-interface {v9}, Lj0/k0/m;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v9, "POST"
|
|
|
|
invoke-virtual {v2, v9, v7, v8}, Lj0/a0$a;->b(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_4
|
|
instance-of v7, v9, Lj0/k0/n;
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
check-cast v9, Lj0/k0/n;
|
|
|
|
invoke-interface {v9}, Lj0/k0/n;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v9, "PUT"
|
|
|
|
invoke-virtual {v2, v9, v7, v8}, Lj0/a0$a;->b(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_5
|
|
instance-of v7, v9, Lj0/k0/k;
|
|
|
|
if-eqz v7, :cond_6
|
|
|
|
check-cast v9, Lj0/k0/k;
|
|
|
|
invoke-interface {v9}, Lj0/k0/k;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "OPTIONS"
|
|
|
|
invoke-virtual {v2, v8, v7, v5}, Lj0/a0$a;->b(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_6
|
|
instance-of v7, v9, Lj0/k0/g;
|
|
|
|
if-eqz v7, :cond_7
|
|
|
|
check-cast v9, Lj0/k0/g;
|
|
|
|
invoke-interface {v9}, Lj0/k0/g;->method()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-interface {v9}, Lj0/k0/g;->path()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v9}, Lj0/k0/g;->hasBody()Z
|
|
|
|
move-result v9
|
|
|
|
invoke-virtual {v2, v7, v8, v9}, Lj0/a0$a;->b(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_7
|
|
instance-of v7, v9, Lj0/k0/i;
|
|
|
|
if-eqz v7, :cond_c
|
|
|
|
check-cast v9, Lj0/k0/i;
|
|
|
|
invoke-interface {v9}, Lj0/k0/i;->value()[Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
array-length v9, v7
|
|
|
|
if-eqz v9, :cond_b
|
|
|
|
new-instance v9, Lokhttp3/Headers$a;
|
|
|
|
invoke-direct {v9}, Lokhttp3/Headers$a;-><init>()V
|
|
|
|
array-length v10, v7
|
|
|
|
const/4 v11, 0x0
|
|
|
|
:goto_1
|
|
if-ge v11, v10, :cond_a
|
|
|
|
aget-object v12, v7, v11
|
|
|
|
const/16 v13, 0x3a
|
|
|
|
invoke-virtual {v12, v13}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
move-result v13
|
|
|
|
const/4 v14, -0x1
|
|
|
|
if-eq v13, v14, :cond_9
|
|
|
|
if-eqz v13, :cond_9
|
|
|
|
invoke-virtual {v12}, Ljava/lang/String;->length()I
|
|
|
|
move-result v14
|
|
|
|
sub-int/2addr v14, v8
|
|
|
|
if-eq v13, v14, :cond_9
|
|
|
|
invoke-virtual {v12, v5, v13}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v14
|
|
|
|
add-int/lit8 v13, v13, 0x1
|
|
|
|
invoke-virtual {v12, v13}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v12}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object v12
|
|
|
|
const-string v13, "Content-Type"
|
|
|
|
invoke-virtual {v13, v14}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_8
|
|
|
|
:try_start_0
|
|
invoke-static {v12}, Lokhttp3/MediaType;->c(Ljava/lang/String;)Lokhttp3/MediaType;
|
|
|
|
move-result-object v13
|
|
|
|
iput-object v13, v2, Lj0/a0$a;->t:Lokhttp3/MediaType;
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v2, v8, [Ljava/lang/Object;
|
|
|
|
aput-object v12, v2, v5
|
|
|
|
const-string v3, "Malformed content type: %s"
|
|
|
|
invoke-static {v1, v0, v3, v2}, Lj0/h0;->k(Ljava/lang/reflect/Method;Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_8
|
|
invoke-virtual {v9, v14, v12}, Lokhttp3/Headers$a;->a(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
|
|
|
:goto_2
|
|
add-int/lit8 v11, v11, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_9
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v1, v8, [Ljava/lang/Object;
|
|
|
|
aput-object v12, v1, v5
|
|
|
|
const-string v2, "@Headers value must be in the form \"Name: Value\". Found: \"%s\""
|
|
|
|
invoke-static {v0, v2, v1}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_a
|
|
invoke-virtual {v9}, Lokhttp3/Headers$a;->c()Lokhttp3/Headers;
|
|
|
|
move-result-object v7
|
|
|
|
iput-object v7, v2, Lj0/a0$a;->s:Lokhttp3/Headers;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_b
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v1, v5, [Ljava/lang/Object;
|
|
|
|
const-string v2, "@Headers annotation is empty."
|
|
|
|
invoke-static {v0, v2, v1}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_c
|
|
instance-of v7, v9, Lj0/k0/j;
|
|
|
|
if-eqz v7, :cond_e
|
|
|
|
iget-boolean v7, v2, Lj0/a0$a;->p:Z
|
|
|
|
if-nez v7, :cond_d
|
|
|
|
iput-boolean v8, v2, Lj0/a0$a;->q:Z
|
|
|
|
goto :goto_3
|
|
|
|
:cond_d
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v1, v5, [Ljava/lang/Object;
|
|
|
|
const-string v2, "Only one encoding annotation is allowed."
|
|
|
|
invoke-static {v0, v2, v1}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_e
|
|
:goto_3
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_f
|
|
iget-object v3, v2, Lj0/a0$a;->n:Ljava/lang/String;
|
|
|
|
if-eqz v3, :cond_72
|
|
|
|
iget-boolean v3, v2, Lj0/a0$a;->o:Z
|
|
|
|
if-nez v3, :cond_12
|
|
|
|
iget-boolean v3, v2, Lj0/a0$a;->q:Z
|
|
|
|
if-nez v3, :cond_11
|
|
|
|
iget-boolean v3, v2, Lj0/a0$a;->p:Z
|
|
|
|
if-nez v3, :cond_10
|
|
|
|
goto :goto_4
|
|
|
|
:cond_10
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v1, v5, [Ljava/lang/Object;
|
|
|
|
const-string v2, "FormUrlEncoded can only be specified on HTTP methods with request body (e.g., @POST)."
|
|
|
|
invoke-static {v0, v2, v1}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_11
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v1, v5, [Ljava/lang/Object;
|
|
|
|
const-string v2, "Multipart can only be specified on HTTP methods with request body (e.g., @POST)."
|
|
|
|
invoke-static {v0, v2, v1}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_12
|
|
:goto_4
|
|
iget-object v3, v2, Lj0/a0$a;->d:[[Ljava/lang/annotation/Annotation;
|
|
|
|
array-length v3, v3
|
|
|
|
new-array v4, v3, [Lj0/x;
|
|
|
|
iput-object v4, v2, Lj0/a0$a;->v:[Lj0/x;
|
|
|
|
add-int/lit8 v4, v3, -0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
:goto_5
|
|
if-ge v5, v3, :cond_5d
|
|
|
|
iget-object v6, v2, Lj0/a0$a;->v:[Lj0/x;
|
|
|
|
iget-object v8, v2, Lj0/a0$a;->e:[Ljava/lang/reflect/Type;
|
|
|
|
aget-object v14, v8, v5
|
|
|
|
iget-object v8, v2, Lj0/a0$a;->d:[[Ljava/lang/annotation/Annotation;
|
|
|
|
aget-object v15, v8, v5
|
|
|
|
if-ne v5, v4, :cond_13
|
|
|
|
const/4 v8, 0x1
|
|
|
|
const/16 v16, 0x1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_13
|
|
const/4 v8, 0x0
|
|
|
|
const/16 v16, 0x0
|
|
|
|
:goto_6
|
|
if-eqz v15, :cond_5a
|
|
|
|
array-length v13, v15
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object/from16 v17, v9
|
|
|
|
const/4 v12, 0x0
|
|
|
|
:goto_7
|
|
if-ge v12, v13, :cond_59
|
|
|
|
aget-object v8, v15, v12
|
|
|
|
const-class v9, Ljava/lang/String;
|
|
|
|
const-class v10, Lokhttp3/MultipartBody$Part;
|
|
|
|
instance-of v11, v8, Lj0/k0/v;
|
|
|
|
move/from16 v18, v3
|
|
|
|
const-string v3, "@Path parameters may not be used with @Url."
|
|
|
|
if-eqz v11, :cond_1c
|
|
|
|
invoke-virtual {v2, v5, v14}, Lj0/a0$a;->c(ILjava/lang/reflect/Type;)V
|
|
|
|
iget-boolean v8, v2, Lj0/a0$a;->m:Z
|
|
|
|
if-nez v8, :cond_1b
|
|
|
|
iget-boolean v8, v2, Lj0/a0$a;->i:Z
|
|
|
|
if-nez v8, :cond_1a
|
|
|
|
iget-boolean v3, v2, Lj0/a0$a;->j:Z
|
|
|
|
if-nez v3, :cond_19
|
|
|
|
iget-boolean v3, v2, Lj0/a0$a;->k:Z
|
|
|
|
if-nez v3, :cond_18
|
|
|
|
iget-boolean v3, v2, Lj0/a0$a;->l:Z
|
|
|
|
if-nez v3, :cond_17
|
|
|
|
iget-object v3, v2, Lj0/a0$a;->r:Ljava/lang/String;
|
|
|
|
if-nez v3, :cond_16
|
|
|
|
const/4 v3, 0x1
|
|
|
|
iput-boolean v3, v2, Lj0/a0$a;->m:Z
|
|
|
|
const-class v3, Lf0/y;
|
|
|
|
if-eq v14, v3, :cond_15
|
|
|
|
if-eq v14, v9, :cond_15
|
|
|
|
const-class v3, Ljava/net/URI;
|
|
|
|
if-eq v14, v3, :cond_15
|
|
|
|
instance-of v3, v14, Ljava/lang/Class;
|
|
|
|
if-eqz v3, :cond_14
|
|
|
|
const-string v3, "android.net.Uri"
|
|
|
|
move-object v8, v14
|
|
|
|
check-cast v8, Ljava/lang/Class;
|
|
|
|
invoke-virtual {v8}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v3, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_14
|
|
|
|
goto :goto_8
|
|
|
|
:cond_14
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const-string v2, "@Url must be okhttp3.HttpUrl, String, java.net.URI, or android.net.Uri type."
|
|
|
|
invoke-static {v0, v5, v2, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_15
|
|
:goto_8
|
|
new-instance v3, Lj0/x$l;
|
|
|
|
iget-object v8, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
invoke-direct {v3, v8, v5}, Lj0/x$l;-><init>(Ljava/lang/reflect/Method;I)V
|
|
|
|
move/from16 v19, v4
|
|
|
|
move/from16 v21, v12
|
|
|
|
move/from16 v20, v13
|
|
|
|
goto/16 :goto_e
|
|
|
|
:cond_16
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
iget-object v2, v2, Lj0/a0$a;->n:Ljava/lang/String;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
const-string v2, "@Url cannot be used with @%s URL"
|
|
|
|
invoke-static {v0, v5, v2, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_17
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "A @Url parameter must not come after a @QueryMap."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_18
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "A @Url parameter must not come after a @QueryName."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_19
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "A @Url parameter must not come after a @Query."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_1a
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-static {v1, v5, v3, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_1b
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "Multiple @Url method annotations found."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_1c
|
|
instance-of v11, v8, Lj0/k0/q;
|
|
|
|
move/from16 v19, v4
|
|
|
|
const/4 v4, 0x2
|
|
|
|
if-eqz v11, :cond_24
|
|
|
|
invoke-virtual {v2, v5, v14}, Lj0/a0$a;->c(ILjava/lang/reflect/Type;)V
|
|
|
|
iget-boolean v9, v2, Lj0/a0$a;->j:Z
|
|
|
|
if-nez v9, :cond_23
|
|
|
|
iget-boolean v9, v2, Lj0/a0$a;->k:Z
|
|
|
|
if-nez v9, :cond_22
|
|
|
|
iget-boolean v9, v2, Lj0/a0$a;->l:Z
|
|
|
|
if-nez v9, :cond_21
|
|
|
|
iget-boolean v9, v2, Lj0/a0$a;->m:Z
|
|
|
|
if-nez v9, :cond_20
|
|
|
|
iget-object v3, v2, Lj0/a0$a;->r:Ljava/lang/String;
|
|
|
|
if-eqz v3, :cond_1f
|
|
|
|
const/4 v3, 0x1
|
|
|
|
iput-boolean v3, v2, Lj0/a0$a;->i:Z
|
|
|
|
check-cast v8, Lj0/k0/q;
|
|
|
|
invoke-interface {v8}, Lj0/k0/q;->value()Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
sget-object v3, Lj0/a0$a;->y:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v3, v11}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1e
|
|
|
|
iget-object v3, v2, Lj0/a0$a;->u:Ljava/util/Set;
|
|
|
|
invoke-interface {v3, v11}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1d
|
|
|
|
iget-object v3, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v3, v14, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v3
|
|
|
|
new-instance v4, Lj0/x$g;
|
|
|
|
iget-object v9, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
invoke-interface {v8}, Lj0/k0/q;->encoded()Z
|
|
|
|
move-result v20
|
|
|
|
move-object v8, v4
|
|
|
|
move v10, v5
|
|
|
|
move/from16 v21, v12
|
|
|
|
move-object v12, v3
|
|
|
|
move v3, v13
|
|
|
|
move/from16 v13, v20
|
|
|
|
invoke-direct/range {v8 .. v13}, Lj0/x$g;-><init>(Ljava/lang/reflect/Method;ILjava/lang/String;Lj0/h;Z)V
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_1d
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v1, v4, [Ljava/lang/Object;
|
|
|
|
iget-object v2, v2, Lj0/a0$a;->r:Ljava/lang/String;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object v11, v1, v2
|
|
|
|
const-string v2, "URL \"%s\" does not contain \"{%s}\"."
|
|
|
|
invoke-static {v0, v5, v2, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_1e
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iget-object v2, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v3, v4, [Ljava/lang/Object;
|
|
|
|
sget-object v4, Lj0/a0$a;->x:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v4}, Ljava/util/regex/Pattern;->pattern()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v3, v0
|
|
|
|
aput-object v11, v3, v1
|
|
|
|
const-string v0, "@Path parameter name must match %s. Found: %s"
|
|
|
|
invoke-static {v2, v5, v0, v3}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_1f
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iget-object v3, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
iget-object v2, v2, Lj0/a0$a;->n:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v0
|
|
|
|
const-string v0, "@Path can only be used with relative url on @%s"
|
|
|
|
invoke-static {v3, v5, v0, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_20
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-static {v1, v5, v3, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_21
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "A @Path parameter must not come after a @QueryMap."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_22
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "A @Path parameter must not come after a @QueryName."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_23
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "A @Path parameter must not come after a @Query."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_24
|
|
move/from16 v21, v12
|
|
|
|
move v3, v13
|
|
|
|
instance-of v4, v8, Lj0/k0/r;
|
|
|
|
const-string v11, "<String>)"
|
|
|
|
const-string v12, " must include generic type (e.g., "
|
|
|
|
if-eqz v4, :cond_28
|
|
|
|
invoke-virtual {v2, v5, v14}, Lj0/a0$a;->c(ILjava/lang/reflect/Type;)V
|
|
|
|
check-cast v8, Lj0/k0/r;
|
|
|
|
invoke-interface {v8}, Lj0/k0/r;->value()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v8}, Lj0/k0/r;->encoded()Z
|
|
|
|
move-result v8
|
|
|
|
invoke-static {v14}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v9
|
|
|
|
const/4 v10, 0x1
|
|
|
|
iput-boolean v10, v2, Lj0/a0$a;->j:Z
|
|
|
|
const-class v10, Ljava/lang/Iterable;
|
|
|
|
invoke-virtual {v10, v9}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v10
|
|
|
|
if-eqz v10, :cond_26
|
|
|
|
instance-of v10, v14, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v10, :cond_25
|
|
|
|
move-object v9, v14
|
|
|
|
check-cast v9, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-static {v10, v9}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v9
|
|
|
|
iget-object v10, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v10, v9, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v9
|
|
|
|
new-instance v10, Lj0/x$h;
|
|
|
|
invoke-direct {v10, v4, v9, v8}, Lj0/x$h;-><init>(Ljava/lang/String;Lj0/h;Z)V
|
|
|
|
new-instance v4, Lj0/v;
|
|
|
|
invoke-direct {v4, v10}, Lj0/v;-><init>(Lj0/x;)V
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_25
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-static {v9, v1, v12, v11}, Lf/e/c/a/a;->h(Ljava/lang/Class;Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v1, v2}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_26
|
|
invoke-virtual {v9}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v10
|
|
|
|
if-eqz v10, :cond_27
|
|
|
|
invoke-virtual {v9}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-static {v9}, Lj0/a0$a;->a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
move-result-object v9
|
|
|
|
iget-object v10, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v10, v9, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v9
|
|
|
|
new-instance v10, Lj0/x$h;
|
|
|
|
invoke-direct {v10, v4, v9, v8}, Lj0/x$h;-><init>(Ljava/lang/String;Lj0/h;Z)V
|
|
|
|
new-instance v4, Lj0/w;
|
|
|
|
invoke-direct {v4, v10}, Lj0/w;-><init>(Lj0/x;)V
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_27
|
|
iget-object v9, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v9, v14, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v9
|
|
|
|
new-instance v10, Lj0/x$h;
|
|
|
|
invoke-direct {v10, v4, v9, v8}, Lj0/x$h;-><init>(Ljava/lang/String;Lj0/h;Z)V
|
|
|
|
goto/16 :goto_a
|
|
|
|
:cond_28
|
|
instance-of v4, v8, Lj0/k0/t;
|
|
|
|
if-eqz v4, :cond_2c
|
|
|
|
invoke-virtual {v2, v5, v14}, Lj0/a0$a;->c(ILjava/lang/reflect/Type;)V
|
|
|
|
check-cast v8, Lj0/k0/t;
|
|
|
|
invoke-interface {v8}, Lj0/k0/t;->encoded()Z
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v14}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
const/4 v9, 0x1
|
|
|
|
iput-boolean v9, v2, Lj0/a0$a;->k:Z
|
|
|
|
const-class v9, Ljava/lang/Iterable;
|
|
|
|
invoke-virtual {v9, v8}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_2a
|
|
|
|
instance-of v9, v14, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v9, :cond_29
|
|
|
|
move-object v8, v14
|
|
|
|
check-cast v8, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-static {v9, v8}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v8
|
|
|
|
iget-object v9, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v9, v8, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v8
|
|
|
|
new-instance v9, Lj0/x$j;
|
|
|
|
invoke-direct {v9, v8, v4}, Lj0/x$j;-><init>(Lj0/h;Z)V
|
|
|
|
new-instance v4, Lj0/v;
|
|
|
|
invoke-direct {v4, v9}, Lj0/v;-><init>(Lj0/x;)V
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_29
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-static {v8, v1, v12, v11}, Lf/e/c/a/a;->h(Ljava/lang/Class;Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v1, v2}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_2a
|
|
invoke-virtual {v8}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_2b
|
|
|
|
invoke-virtual {v8}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v8}, Lj0/a0$a;->a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
iget-object v9, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v9, v8, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v8
|
|
|
|
new-instance v9, Lj0/x$j;
|
|
|
|
invoke-direct {v9, v8, v4}, Lj0/x$j;-><init>(Lj0/h;Z)V
|
|
|
|
new-instance v4, Lj0/w;
|
|
|
|
invoke-direct {v4, v9}, Lj0/w;-><init>(Lj0/x;)V
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_2b
|
|
iget-object v8, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v8, v14, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v8
|
|
|
|
new-instance v9, Lj0/x$j;
|
|
|
|
invoke-direct {v9, v8, v4}, Lj0/x$j;-><init>(Lj0/h;Z)V
|
|
|
|
:goto_9
|
|
move/from16 v20, v3
|
|
|
|
move-object v3, v9
|
|
|
|
goto/16 :goto_e
|
|
|
|
:cond_2c
|
|
instance-of v4, v8, Lj0/k0/s;
|
|
|
|
const-string v13, "Map must include generic types (e.g., Map<String, String>)"
|
|
|
|
if-eqz v4, :cond_30
|
|
|
|
invoke-virtual {v2, v5, v14}, Lj0/a0$a;->c(ILjava/lang/reflect/Type;)V
|
|
|
|
invoke-static {v14}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v10, 0x1
|
|
|
|
iput-boolean v10, v2, Lj0/a0$a;->l:Z
|
|
|
|
const-class v11, Ljava/util/Map;
|
|
|
|
invoke-virtual {v11, v4}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v11
|
|
|
|
if-eqz v11, :cond_2f
|
|
|
|
const-class v11, Ljava/util/Map;
|
|
|
|
invoke-static {v14, v4, v11}, Lj0/h0;->g(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
instance-of v11, v4, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v11, :cond_2e
|
|
|
|
check-cast v4, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v11, 0x0
|
|
|
|
invoke-static {v11, v4}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v11
|
|
|
|
if-ne v9, v11, :cond_2d
|
|
|
|
invoke-static {v10, v4}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v9, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v9, v4, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v4
|
|
|
|
new-instance v9, Lj0/x$i;
|
|
|
|
iget-object v10, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
check-cast v8, Lj0/k0/s;
|
|
|
|
invoke-interface {v8}, Lj0/k0/s;->encoded()Z
|
|
|
|
move-result v8
|
|
|
|
invoke-direct {v9, v10, v5, v4, v8}, Lj0/x$i;-><init>(Ljava/lang/reflect/Method;ILj0/h;Z)V
|
|
|
|
goto :goto_9
|
|
|
|
:cond_2d
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "@QueryMap keys must be of type String: "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v1, v2}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_2e
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-static {v1, v5, v13, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_2f
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "@QueryMap parameter type must be Map."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_30
|
|
instance-of v4, v8, Lj0/k0/h;
|
|
|
|
if-eqz v4, :cond_34
|
|
|
|
invoke-virtual {v2, v5, v14}, Lj0/a0$a;->c(ILjava/lang/reflect/Type;)V
|
|
|
|
check-cast v8, Lj0/k0/h;
|
|
|
|
invoke-interface {v8}, Lj0/k0/h;->value()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v14}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
const-class v9, Ljava/lang/Iterable;
|
|
|
|
invoke-virtual {v9, v8}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_32
|
|
|
|
instance-of v9, v14, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v9, :cond_31
|
|
|
|
move-object v8, v14
|
|
|
|
check-cast v8, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-static {v9, v8}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v8
|
|
|
|
iget-object v9, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v9, v8, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v8
|
|
|
|
new-instance v9, Lj0/x$d;
|
|
|
|
invoke-direct {v9, v4, v8}, Lj0/x$d;-><init>(Ljava/lang/String;Lj0/h;)V
|
|
|
|
new-instance v4, Lj0/v;
|
|
|
|
invoke-direct {v4, v9}, Lj0/v;-><init>(Lj0/x;)V
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_31
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-static {v8, v1, v12, v11}, Lf/e/c/a/a;->h(Ljava/lang/Class;Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v1, v2}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_32
|
|
invoke-virtual {v8}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_33
|
|
|
|
invoke-virtual {v8}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v8}, Lj0/a0$a;->a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
iget-object v9, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v9, v8, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v8
|
|
|
|
new-instance v9, Lj0/x$d;
|
|
|
|
invoke-direct {v9, v4, v8}, Lj0/x$d;-><init>(Ljava/lang/String;Lj0/h;)V
|
|
|
|
new-instance v4, Lj0/w;
|
|
|
|
invoke-direct {v4, v9}, Lj0/w;-><init>(Lj0/x;)V
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_33
|
|
iget-object v8, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v8, v14, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v8
|
|
|
|
new-instance v9, Lj0/x$d;
|
|
|
|
invoke-direct {v9, v4, v8}, Lj0/x$d;-><init>(Ljava/lang/String;Lj0/h;)V
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_34
|
|
instance-of v4, v8, Lj0/k0/c;
|
|
|
|
if-eqz v4, :cond_39
|
|
|
|
invoke-virtual {v2, v5, v14}, Lj0/a0$a;->c(ILjava/lang/reflect/Type;)V
|
|
|
|
iget-boolean v4, v2, Lj0/a0$a;->p:Z
|
|
|
|
if-eqz v4, :cond_38
|
|
|
|
check-cast v8, Lj0/k0/c;
|
|
|
|
invoke-interface {v8}, Lj0/k0/c;->value()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v8}, Lj0/k0/c;->encoded()Z
|
|
|
|
move-result v8
|
|
|
|
const/4 v9, 0x1
|
|
|
|
iput-boolean v9, v2, Lj0/a0$a;->f:Z
|
|
|
|
invoke-static {v14}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v9
|
|
|
|
const-class v10, Ljava/lang/Iterable;
|
|
|
|
invoke-virtual {v10, v9}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v10
|
|
|
|
if-eqz v10, :cond_36
|
|
|
|
instance-of v10, v14, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v10, :cond_35
|
|
|
|
move-object v9, v14
|
|
|
|
check-cast v9, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-static {v10, v9}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v9
|
|
|
|
iget-object v10, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v10, v9, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v9
|
|
|
|
new-instance v10, Lj0/x$b;
|
|
|
|
invoke-direct {v10, v4, v9, v8}, Lj0/x$b;-><init>(Ljava/lang/String;Lj0/h;Z)V
|
|
|
|
new-instance v4, Lj0/v;
|
|
|
|
invoke-direct {v4, v10}, Lj0/v;-><init>(Lj0/x;)V
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_35
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-static {v9, v1, v12, v11}, Lf/e/c/a/a;->h(Ljava/lang/Class;Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v1, v2}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_36
|
|
invoke-virtual {v9}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v10
|
|
|
|
if-eqz v10, :cond_37
|
|
|
|
invoke-virtual {v9}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-static {v9}, Lj0/a0$a;->a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
move-result-object v9
|
|
|
|
iget-object v10, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v10, v9, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v9
|
|
|
|
new-instance v10, Lj0/x$b;
|
|
|
|
invoke-direct {v10, v4, v9, v8}, Lj0/x$b;-><init>(Ljava/lang/String;Lj0/h;Z)V
|
|
|
|
new-instance v4, Lj0/w;
|
|
|
|
invoke-direct {v4, v10}, Lj0/w;-><init>(Lj0/x;)V
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_37
|
|
iget-object v9, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v9, v14, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v9
|
|
|
|
new-instance v10, Lj0/x$b;
|
|
|
|
invoke-direct {v10, v4, v9, v8}, Lj0/x$b;-><init>(Ljava/lang/String;Lj0/h;Z)V
|
|
|
|
:goto_a
|
|
move/from16 v20, v3
|
|
|
|
move-object v3, v10
|
|
|
|
goto/16 :goto_e
|
|
|
|
:cond_38
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const-string v2, "@Field parameters can only be used with form encoding."
|
|
|
|
invoke-static {v0, v5, v2, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_39
|
|
instance-of v4, v8, Lj0/k0/d;
|
|
|
|
if-eqz v4, :cond_3e
|
|
|
|
invoke-virtual {v2, v5, v14}, Lj0/a0$a;->c(ILjava/lang/reflect/Type;)V
|
|
|
|
iget-boolean v4, v2, Lj0/a0$a;->p:Z
|
|
|
|
if-eqz v4, :cond_3d
|
|
|
|
invoke-static {v14}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v4
|
|
|
|
const-class v10, Ljava/util/Map;
|
|
|
|
invoke-virtual {v10, v4}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v10
|
|
|
|
if-eqz v10, :cond_3c
|
|
|
|
const-class v10, Ljava/util/Map;
|
|
|
|
invoke-static {v14, v4, v10}, Lj0/h0;->g(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
instance-of v10, v4, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v10, :cond_3b
|
|
|
|
check-cast v4, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-static {v10, v4}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v10
|
|
|
|
if-ne v9, v10, :cond_3a
|
|
|
|
const/4 v9, 0x1
|
|
|
|
invoke-static {v9, v4}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v10, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
invoke-virtual {v10, v4, v15}, Lj0/d0;->e(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v4
|
|
|
|
iput-boolean v9, v2, Lj0/a0$a;->f:Z
|
|
|
|
new-instance v9, Lj0/x$c;
|
|
|
|
iget-object v10, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
check-cast v8, Lj0/k0/d;
|
|
|
|
invoke-interface {v8}, Lj0/k0/d;->encoded()Z
|
|
|
|
move-result v8
|
|
|
|
invoke-direct {v9, v10, v5, v4, v8}, Lj0/x$c;-><init>(Ljava/lang/reflect/Method;ILj0/h;Z)V
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_3a
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "@FieldMap keys must be of type String: "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v1, v2}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_3b
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-static {v1, v5, v13, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_3c
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "@FieldMap parameter type must be Map."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_3d
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "@FieldMap parameters can only be used with form encoding."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_3e
|
|
instance-of v4, v8, Lj0/k0/o;
|
|
|
|
if-eqz v4, :cond_4d
|
|
|
|
invoke-virtual {v2, v5, v14}, Lj0/a0$a;->c(ILjava/lang/reflect/Type;)V
|
|
|
|
iget-boolean v4, v2, Lj0/a0$a;->q:Z
|
|
|
|
if-eqz v4, :cond_4c
|
|
|
|
check-cast v8, Lj0/k0/o;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
iput-boolean v4, v2, Lj0/a0$a;->g:Z
|
|
|
|
invoke-interface {v8}, Lj0/k0/o;->value()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v14}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v4}, Ljava/lang/String;->isEmpty()Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_45
|
|
|
|
const-class v4, Ljava/lang/Iterable;
|
|
|
|
invoke-virtual {v4, v9}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v4
|
|
|
|
const-string v8, "@Part annotation must supply a name or use MultipartBody.Part parameter type."
|
|
|
|
if-eqz v4, :cond_41
|
|
|
|
instance-of v4, v14, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v4, :cond_40
|
|
|
|
move-object v4, v14
|
|
|
|
check-cast v4, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-static {v9, v4}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v10, v4}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_3f
|
|
|
|
sget-object v4, Lj0/x$k;->a:Lj0/x$k;
|
|
|
|
new-instance v8, Lj0/v;
|
|
|
|
invoke-direct {v8, v4}, Lj0/v;-><init>(Lj0/x;)V
|
|
|
|
:goto_b
|
|
move/from16 v20, v3
|
|
|
|
move-object v3, v8
|
|
|
|
goto/16 :goto_e
|
|
|
|
:cond_3f
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v1, v9, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v8, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_40
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-static {v9, v1, v12, v11}, Lf/e/c/a/a;->h(Ljava/lang/Class;Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v1, v2}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_41
|
|
invoke-virtual {v9}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_43
|
|
|
|
invoke-virtual {v9}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v10, v4}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_42
|
|
|
|
sget-object v4, Lj0/x$k;->a:Lj0/x$k;
|
|
|
|
new-instance v8, Lj0/w;
|
|
|
|
invoke-direct {v8, v4}, Lj0/w;-><init>(Lj0/x;)V
|
|
|
|
goto :goto_b
|
|
|
|
:cond_42
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v8, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_43
|
|
const/4 v4, 0x0
|
|
|
|
invoke-virtual {v10, v9}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_44
|
|
|
|
sget-object v4, Lj0/x$k;->a:Lj0/x$k;
|
|
|
|
:goto_c
|
|
move/from16 v20, v3
|
|
|
|
:goto_d
|
|
move-object v3, v4
|
|
|
|
goto/16 :goto_e
|
|
|
|
:cond_44
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v1, v4, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v8, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_45
|
|
const/4 v13, 0x4
|
|
|
|
new-array v13, v13, [Ljava/lang/String;
|
|
|
|
const-string v22, "Content-Disposition"
|
|
|
|
const/16 v20, 0x0
|
|
|
|
aput-object v22, v13, v20
|
|
|
|
move/from16 v20, v3
|
|
|
|
const-string v3, "form-data; name=\""
|
|
|
|
const-string v1, "\""
|
|
|
|
invoke-static {v3, v4, v1}, Lf/e/c/a/a;->r(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
aput-object v1, v13, v3
|
|
|
|
const-string v1, "Content-Transfer-Encoding"
|
|
|
|
const/4 v3, 0x2
|
|
|
|
aput-object v1, v13, v3
|
|
|
|
const/4 v1, 0x3
|
|
|
|
invoke-interface {v8}, Lj0/k0/o;->encoding()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
aput-object v3, v13, v1
|
|
|
|
sget-object v1, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
|
|
|
|
invoke-virtual {v1, v13}, Lokhttp3/Headers$b;->c([Ljava/lang/String;)Lokhttp3/Headers;
|
|
|
|
move-result-object v1
|
|
|
|
const-class v3, Ljava/lang/Iterable;
|
|
|
|
invoke-virtual {v3, v9}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v3
|
|
|
|
const-string v4, "@Part parameters using the MultipartBody.Part must not include a part name in the annotation."
|
|
|
|
if-eqz v3, :cond_48
|
|
|
|
instance-of v3, v14, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v3, :cond_47
|
|
|
|
move-object v3, v14
|
|
|
|
check-cast v3, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v8, 0x0
|
|
|
|
invoke-static {v8, v3}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v10, v8}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_46
|
|
|
|
iget-object v4, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
iget-object v8, v2, Lj0/a0$a;->c:[Ljava/lang/annotation/Annotation;
|
|
|
|
invoke-virtual {v4, v3, v15, v8}, Lj0/d0;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v3
|
|
|
|
new-instance v4, Lj0/x$e;
|
|
|
|
iget-object v8, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
invoke-direct {v4, v8, v5, v1, v3}, Lj0/x$e;-><init>(Ljava/lang/reflect/Method;ILokhttp3/Headers;Lj0/h;)V
|
|
|
|
new-instance v3, Lj0/v;
|
|
|
|
invoke-direct {v3, v4}, Lj0/v;-><init>(Lj0/x;)V
|
|
|
|
goto/16 :goto_e
|
|
|
|
:cond_46
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v4, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_47
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-static {v9, v1, v12, v11}, Lf/e/c/a/a;->h(Ljava/lang/Class;Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v1, v2}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_48
|
|
invoke-virtual {v9}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_4a
|
|
|
|
invoke-virtual {v9}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Lj0/a0$a;->a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v10, v3}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_49
|
|
|
|
iget-object v4, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
iget-object v8, v2, Lj0/a0$a;->c:[Ljava/lang/annotation/Annotation;
|
|
|
|
invoke-virtual {v4, v3, v15, v8}, Lj0/d0;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v3
|
|
|
|
new-instance v4, Lj0/x$e;
|
|
|
|
iget-object v8, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
invoke-direct {v4, v8, v5, v1, v3}, Lj0/x$e;-><init>(Ljava/lang/reflect/Method;ILokhttp3/Headers;Lj0/h;)V
|
|
|
|
new-instance v3, Lj0/w;
|
|
|
|
invoke-direct {v3, v4}, Lj0/w;-><init>(Lj0/x;)V
|
|
|
|
goto/16 :goto_e
|
|
|
|
:cond_49
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v4, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_4a
|
|
invoke-virtual {v10, v9}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_4b
|
|
|
|
iget-object v3, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
iget-object v4, v2, Lj0/a0$a;->c:[Ljava/lang/annotation/Annotation;
|
|
|
|
invoke-virtual {v3, v14, v15, v4}, Lj0/d0;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v3
|
|
|
|
new-instance v4, Lj0/x$e;
|
|
|
|
iget-object v8, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
invoke-direct {v4, v8, v5, v1, v3}, Lj0/x$e;-><init>(Ljava/lang/reflect/Method;ILokhttp3/Headers;Lj0/h;)V
|
|
|
|
goto/16 :goto_d
|
|
|
|
:cond_4b
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v5, v4, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_4c
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "@Part parameters can only be used with multipart encoding."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_4d
|
|
move/from16 v20, v3
|
|
|
|
instance-of v1, v8, Lj0/k0/p;
|
|
|
|
if-eqz v1, :cond_53
|
|
|
|
invoke-virtual {v2, v5, v14}, Lj0/a0$a;->c(ILjava/lang/reflect/Type;)V
|
|
|
|
iget-boolean v1, v2, Lj0/a0$a;->q:Z
|
|
|
|
if-eqz v1, :cond_52
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iput-boolean v1, v2, Lj0/a0$a;->g:Z
|
|
|
|
invoke-static {v14}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
const-class v3, Ljava/util/Map;
|
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_51
|
|
|
|
const-class v3, Ljava/util/Map;
|
|
|
|
invoke-static {v14, v1, v3}, Lj0/h0;->g(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v1
|
|
|
|
instance-of v3, v1, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v3, :cond_50
|
|
|
|
check-cast v1, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v3, v1}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v3
|
|
|
|
if-ne v9, v3, :cond_4f
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-static {v3, v1}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v10, v3}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_4e
|
|
|
|
iget-object v3, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
iget-object v4, v2, Lj0/a0$a;->c:[Ljava/lang/annotation/Annotation;
|
|
|
|
invoke-virtual {v3, v1, v15, v4}, Lj0/d0;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v8, Lj0/k0/p;
|
|
|
|
new-instance v3, Lj0/x$f;
|
|
|
|
iget-object v4, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
invoke-interface {v8}, Lj0/k0/p;->encoding()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-direct {v3, v4, v5, v1, v8}, Lj0/x$f;-><init>(Ljava/lang/reflect/Method;ILj0/h;Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_e
|
|
|
|
:cond_4e
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const-string v2, "@PartMap values cannot be MultipartBody.Part. Use @Part List<Part> or a different value type instead."
|
|
|
|
invoke-static {v0, v5, v2, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_4f
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "@PartMap keys must be of type String: "
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_50
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-static {v1, v5, v13, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_51
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "@PartMap parameter type must be Map."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_52
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "@PartMap parameters can only be used with multipart encoding."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_53
|
|
instance-of v1, v8, Lj0/k0/a;
|
|
|
|
if-eqz v1, :cond_56
|
|
|
|
invoke-virtual {v2, v5, v14}, Lj0/a0$a;->c(ILjava/lang/reflect/Type;)V
|
|
|
|
iget-boolean v1, v2, Lj0/a0$a;->p:Z
|
|
|
|
if-nez v1, :cond_55
|
|
|
|
iget-boolean v1, v2, Lj0/a0$a;->q:Z
|
|
|
|
if-nez v1, :cond_55
|
|
|
|
iget-boolean v1, v2, Lj0/a0$a;->h:Z
|
|
|
|
if-nez v1, :cond_54
|
|
|
|
:try_start_1
|
|
iget-object v1, v2, Lj0/a0$a;->a:Lj0/d0;
|
|
|
|
iget-object v3, v2, Lj0/a0$a;->c:[Ljava/lang/annotation/Annotation;
|
|
|
|
invoke-virtual {v1, v14, v15, v3}, Lj0/d0;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v1
|
|
:try_end_1
|
|
.catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
iput-boolean v3, v2, Lj0/a0$a;->h:Z
|
|
|
|
new-instance v3, Lj0/x$a;
|
|
|
|
iget-object v4, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
invoke-direct {v3, v4, v5, v1}, Lj0/x$a;-><init>(Ljava/lang/reflect/Method;ILj0/h;)V
|
|
|
|
goto :goto_e
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v14, v2, v3
|
|
|
|
const-string v3, "Unable to create @Body converter for %s"
|
|
|
|
invoke-static {v1, v0, v5, v3, v2}, Lj0/h0;->m(Ljava/lang/reflect/Method;Ljava/lang/Throwable;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_54
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "Multiple @Body method annotations found."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_55
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "@Body parameters cannot be used with form or multi-part encoding."
|
|
|
|
invoke-static {v1, v5, v2, v0}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_56
|
|
const/4 v3, 0x0
|
|
|
|
:goto_e
|
|
if-nez v3, :cond_57
|
|
|
|
goto :goto_f
|
|
|
|
:cond_57
|
|
if-nez v17, :cond_58
|
|
|
|
move-object/from16 v17, v3
|
|
|
|
:goto_f
|
|
add-int/lit8 v12, v21, 0x1
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move/from16 v3, v18
|
|
|
|
move/from16 v4, v19
|
|
|
|
move/from16 v13, v20
|
|
|
|
goto/16 :goto_7
|
|
|
|
:cond_58
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const-string v2, "Multiple Retrofit annotations found, only one allowed."
|
|
|
|
invoke-static {v0, v5, v2, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_59
|
|
move/from16 v18, v3
|
|
|
|
move/from16 v19, v4
|
|
|
|
goto :goto_10
|
|
|
|
:cond_5a
|
|
move/from16 v18, v3
|
|
|
|
move/from16 v19, v4
|
|
|
|
const/16 v17, 0x0
|
|
|
|
:goto_10
|
|
if-nez v17, :cond_5c
|
|
|
|
if-eqz v16, :cond_5b
|
|
|
|
:try_start_2
|
|
invoke-static {v14}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
const-class v3, Lkotlin/coroutines/Continuation;
|
|
|
|
if-ne v1, v3, :cond_5b
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iput-boolean v1, v2, Lj0/a0$a;->w:Z
|
|
:try_end_2
|
|
.catch Ljava/lang/NoClassDefFoundError; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
const/16 v17, 0x0
|
|
|
|
goto :goto_11
|
|
|
|
:catch_2
|
|
:cond_5b
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const-string v2, "No Retrofit annotation found."
|
|
|
|
invoke-static {v0, v5, v2, v1}, Lj0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_5c
|
|
:goto_11
|
|
aput-object v17, v6, v5
|
|
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move/from16 v3, v18
|
|
|
|
move/from16 v4, v19
|
|
|
|
goto/16 :goto_5
|
|
|
|
:cond_5d
|
|
iget-object v1, v2, Lj0/a0$a;->r:Ljava/lang/String;
|
|
|
|
if-nez v1, :cond_5f
|
|
|
|
iget-boolean v1, v2, Lj0/a0$a;->m:Z
|
|
|
|
if-eqz v1, :cond_5e
|
|
|
|
goto :goto_12
|
|
|
|
:cond_5e
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
iget-object v2, v2, Lj0/a0$a;->n:Ljava/lang/String;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
const-string v2, "Missing either @%s URL or @Url parameter."
|
|
|
|
invoke-static {v0, v2, v1}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_5f
|
|
:goto_12
|
|
iget-boolean v1, v2, Lj0/a0$a;->p:Z
|
|
|
|
if-nez v1, :cond_61
|
|
|
|
iget-boolean v1, v2, Lj0/a0$a;->q:Z
|
|
|
|
if-nez v1, :cond_61
|
|
|
|
iget-boolean v1, v2, Lj0/a0$a;->o:Z
|
|
|
|
if-nez v1, :cond_61
|
|
|
|
iget-boolean v1, v2, Lj0/a0$a;->h:Z
|
|
|
|
if-nez v1, :cond_60
|
|
|
|
goto :goto_13
|
|
|
|
:cond_60
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const-string v2, "Non-body HTTP method cannot contain @Body."
|
|
|
|
invoke-static {v0, v2, v1}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_61
|
|
:goto_13
|
|
iget-boolean v1, v2, Lj0/a0$a;->p:Z
|
|
|
|
if-eqz v1, :cond_63
|
|
|
|
iget-boolean v1, v2, Lj0/a0$a;->f:Z
|
|
|
|
if-eqz v1, :cond_62
|
|
|
|
goto :goto_14
|
|
|
|
:cond_62
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const-string v2, "Form-encoded method must contain at least one @Field."
|
|
|
|
invoke-static {v0, v2, v1}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_63
|
|
:goto_14
|
|
const/4 v1, 0x0
|
|
|
|
iget-boolean v3, v2, Lj0/a0$a;->q:Z
|
|
|
|
if-eqz v3, :cond_65
|
|
|
|
iget-boolean v3, v2, Lj0/a0$a;->g:Z
|
|
|
|
if-eqz v3, :cond_64
|
|
|
|
goto :goto_15
|
|
|
|
:cond_64
|
|
iget-object v0, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const-string v2, "Multipart method must contain at least one @Part."
|
|
|
|
invoke-static {v0, v2, v1}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_65
|
|
:goto_15
|
|
new-instance v3, Lj0/a0;
|
|
|
|
invoke-direct {v3, v2}, Lj0/a0;-><init>(Lj0/a0$a;)V
|
|
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/reflect/Method;->getGenericReturnType()Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lj0/h0;->h(Ljava/lang/reflect/Type;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_71
|
|
|
|
sget-object v2, Ljava/lang/Void;->TYPE:Ljava/lang/Class;
|
|
|
|
if-eq v1, v2, :cond_70
|
|
|
|
const-class v1, Lj0/b0;
|
|
|
|
iget-boolean v2, v3, Lj0/a0;->k:Z
|
|
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/reflect/Method;->getAnnotations()[Ljava/lang/annotation/Annotation;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v2, :cond_69
|
|
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/reflect/Method;->getGenericParameterTypes()[Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v5
|
|
|
|
array-length v6, v5
|
|
|
|
add-int/lit8 v6, v6, -0x1
|
|
|
|
aget-object v5, v5, v6
|
|
|
|
check-cast v5, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
invoke-interface {v5}, Ljava/lang/reflect/ParameterizedType;->getActualTypeArguments()[Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v6, 0x0
|
|
|
|
aget-object v5, v5, v6
|
|
|
|
instance-of v8, v5, Ljava/lang/reflect/WildcardType;
|
|
|
|
if-eqz v8, :cond_66
|
|
|
|
check-cast v5, Ljava/lang/reflect/WildcardType;
|
|
|
|
invoke-interface {v5}, Ljava/lang/reflect/WildcardType;->getLowerBounds()[Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v5
|
|
|
|
aget-object v5, v5, v6
|
|
|
|
:cond_66
|
|
invoke-static {v5}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
if-ne v8, v1, :cond_67
|
|
|
|
instance-of v8, v5, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v8, :cond_67
|
|
|
|
check-cast v5, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
invoke-static {v6, v5}, Lj0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v8, 0x1
|
|
|
|
goto :goto_16
|
|
|
|
:cond_67
|
|
const/4 v8, 0x0
|
|
|
|
:goto_16
|
|
new-instance v9, Lj0/h0$b;
|
|
|
|
const-class v10, Lj0/d;
|
|
|
|
const/4 v11, 0x1
|
|
|
|
new-array v12, v11, [Ljava/lang/reflect/Type;
|
|
|
|
aput-object v5, v12, v6
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-direct {v9, v5, v10, v12}, Lj0/h0$b;-><init>(Ljava/lang/reflect/Type;Ljava/lang/reflect/Type;[Ljava/lang/reflect/Type;)V
|
|
|
|
const-class v5, Lj0/f0;
|
|
|
|
invoke-static {v4, v5}, Lj0/h0;->i([Ljava/lang/annotation/Annotation;Ljava/lang/Class;)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_68
|
|
|
|
goto :goto_17
|
|
|
|
:cond_68
|
|
array-length v5, v4
|
|
|
|
add-int/2addr v5, v11
|
|
|
|
new-array v5, v5, [Ljava/lang/annotation/Annotation;
|
|
|
|
sget-object v10, Lj0/g0;->a:Lj0/f0;
|
|
|
|
aput-object v10, v5, v6
|
|
|
|
array-length v10, v4
|
|
|
|
invoke-static {v4, v6, v5, v11, v10}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
move-object v4, v5
|
|
|
|
goto :goto_17
|
|
|
|
:cond_69
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/reflect/Method;->getGenericReturnType()Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v9
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:goto_17
|
|
:try_start_3
|
|
invoke-virtual {v0, v9, v4}, Lj0/d0;->a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/e;
|
|
|
|
move-result-object v5
|
|
:try_end_3
|
|
.catch Ljava/lang/RuntimeException; {:try_start_3 .. :try_end_3} :catch_4
|
|
|
|
invoke-interface {v5}, Lj0/e;->a()Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
const-class v6, Lokhttp3/Response;
|
|
|
|
if-eq v4, v6, :cond_6f
|
|
|
|
if-eq v4, v1, :cond_6e
|
|
|
|
iget-object v1, v3, Lj0/a0;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_6b
|
|
|
|
const-class v1, Ljava/lang/Void;
|
|
|
|
invoke-virtual {v1, v4}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_6a
|
|
|
|
goto :goto_18
|
|
|
|
:cond_6a
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v1, "HEAD method must use Void as response type."
|
|
|
|
move-object/from16 v6, p1
|
|
|
|
invoke-static {v6, v1, v0}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_6b
|
|
:goto_18
|
|
move-object/from16 v6, p1
|
|
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/reflect/Method;->getAnnotations()[Ljava/lang/annotation/Annotation;
|
|
|
|
move-result-object v1
|
|
|
|
:try_start_4
|
|
invoke-virtual {v0, v4, v1}, Lj0/d0;->d(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lj0/h;
|
|
|
|
move-result-object v4
|
|
:try_end_4
|
|
.catch Ljava/lang/RuntimeException; {:try_start_4 .. :try_end_4} :catch_3
|
|
|
|
iget-object v0, v0, Lj0/d0;->b:Lf0/f$a;
|
|
|
|
if-nez v2, :cond_6c
|
|
|
|
new-instance v1, Lj0/j$a;
|
|
|
|
invoke-direct {v1, v3, v0, v4, v5}, Lj0/j$a;-><init>(Lj0/a0;Lf0/f$a;Lj0/h;Lj0/e;)V
|
|
|
|
goto :goto_19
|
|
|
|
:cond_6c
|
|
if-eqz v8, :cond_6d
|
|
|
|
new-instance v1, Lj0/j$c;
|
|
|
|
invoke-direct {v1, v3, v0, v4, v5}, Lj0/j$c;-><init>(Lj0/a0;Lf0/f$a;Lj0/h;Lj0/e;)V
|
|
|
|
goto :goto_19
|
|
|
|
:cond_6d
|
|
new-instance v7, Lj0/j$b;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v1, v7
|
|
|
|
move-object v2, v3
|
|
|
|
move-object v3, v0
|
|
|
|
invoke-direct/range {v1 .. v6}, Lj0/j$b;-><init>(Lj0/a0;Lf0/f$a;Lj0/h;Lj0/e;Z)V
|
|
|
|
:goto_19
|
|
return-object v1
|
|
|
|
:catch_3
|
|
move-exception v0
|
|
|
|
move-object v1, v0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v4, v0, v2
|
|
|
|
const-string v2, "Unable to create converter for %s"
|
|
|
|
invoke-static {v6, v1, v2, v0}, Lj0/h0;->k(Ljava/lang/reflect/Method;Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_6e
|
|
move-object/from16 v6, p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v1, "Response must include generic type (e.g., Response<String>)"
|
|
|
|
invoke-static {v6, v1, v0}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_6f
|
|
move-object/from16 v6, p1
|
|
|
|
const-string v0, "\'"
|
|
|
|
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v4}, Lj0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "\' is not a valid response body type. Did you mean ResponseBody?"
|
|
|
|
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
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {v6, v0, v1}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:catch_4
|
|
move-exception v0
|
|
|
|
move-object/from16 v6, p1
|
|
|
|
move-object v1, v0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
aput-object v9, v2, v0
|
|
|
|
const-string v0, "Unable to create call adapter for %s"
|
|
|
|
invoke-static {v6, v1, v0, v2}, Lj0/h0;->k(Ljava/lang/reflect/Method;Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_70
|
|
move-object/from16 v6, p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v1, "Service methods cannot return void."
|
|
|
|
invoke-static {v6, v1, v0}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_71
|
|
move-object/from16 v6, p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
aput-object v1, v2, v0
|
|
|
|
const-string v0, "Method return type must not include a type variable or wildcard: %s"
|
|
|
|
invoke-static {v6, v0, v2}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_72
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, v2, Lj0/a0$a;->b:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "HTTP method annotation is required (e.g., @GET, @POST, etc.)."
|
|
|
|
invoke-static {v1, v2, v0}, Lj0/h0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|