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