2997 lines
67 KiB
Smali
2997 lines
67 KiB
Smali
.class public final Le0/r$a;
|
|
.super Ljava/lang/Object;
|
|
.source "ServiceMethod.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Le0/r;
|
|
.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:Le0/q;
|
|
|
|
.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:[Le0/l;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"[",
|
|
"Le0/l<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public v:Le0/e;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Le0/e<",
|
|
"Lb0/z;",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public w:Le0/c;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Le0/c<",
|
|
"TT;TR;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Le0/q;Ljava/lang/reflect/Method;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Le0/r$a;->a:Le0/q;
|
|
|
|
iput-object p2, p0, Le0/r$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, Le0/r$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, Le0/r$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, Le0/r$a;->d:[[Ljava/lang/annotation/Annotation;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Le0/r;
|
|
.locals 19
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
iget-object v0, v1, Le0/r$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}, Le0/s;->d(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, Le0/r$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, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v6, v2, v0}, Le0/q;->a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/c;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_2
|
|
|
|
iput-object v0, v1, Le0/r$a;->w:Le0/c;
|
|
|
|
iget-object v0, v1, Le0/r$a;->w:Le0/c;
|
|
|
|
invoke-interface {v0}, Le0/c;->a()Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, v1, Le0/r$a;->f:Ljava/lang/reflect/Type;
|
|
|
|
iget-object v0, v1, Le0/r$a;->f:Ljava/lang/reflect/Type;
|
|
|
|
const-class v2, Le0/o;
|
|
|
|
if-eq v0, v2, :cond_64
|
|
|
|
const-class v2, Lokhttp3/Response;
|
|
|
|
if-eq v0, v2, :cond_64
|
|
|
|
iget-object v0, v1, Le0/r$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, Le0/r$a;->a:Le0/q;
|
|
|
|
iget-object v6, v1, Le0/r$a;->f:Ljava/lang/reflect/Type;
|
|
|
|
invoke-virtual {v2, v6, v0}, Le0/q;->b(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v0
|
|
:try_end_1
|
|
.catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
iput-object v0, v1, Le0/r$a;->v:Le0/e;
|
|
|
|
iget-object v0, v1, Le0/r$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, Le0/v/b;
|
|
|
|
if-eqz v8, :cond_0
|
|
|
|
check-cast v7, Le0/v/b;
|
|
|
|
invoke-interface {v7}, Le0/v/b;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "DELETE"
|
|
|
|
invoke-virtual {v1, v8, v7, v5}, Le0/r$a;->a(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_0
|
|
instance-of v8, v7, Le0/v/e;
|
|
|
|
if-eqz v8, :cond_1
|
|
|
|
check-cast v7, Le0/v/e;
|
|
|
|
invoke-interface {v7}, Le0/v/e;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "GET"
|
|
|
|
invoke-virtual {v1, v8, v7, v5}, Le0/r$a;->a(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_1
|
|
instance-of v8, v7, Le0/v/f;
|
|
|
|
if-eqz v8, :cond_3
|
|
|
|
check-cast v7, Le0/v/f;
|
|
|
|
invoke-interface {v7}, Le0/v/f;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "HEAD"
|
|
|
|
invoke-virtual {v1, v8, v7, v5}, Le0/r$a;->a(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
const-class v7, Ljava/lang/Void;
|
|
|
|
iget-object v8, v1, Le0/r$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}, Le0/r$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
instance-of v8, v7, Le0/v/l;
|
|
|
|
if-eqz v8, :cond_4
|
|
|
|
check-cast v7, Le0/v/l;
|
|
|
|
invoke-interface {v7}, Le0/v/l;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "PATCH"
|
|
|
|
invoke-virtual {v1, v8, v7, v4}, Le0/r$a;->a(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_4
|
|
instance-of v8, v7, Le0/v/m;
|
|
|
|
if-eqz v8, :cond_5
|
|
|
|
check-cast v7, Le0/v/m;
|
|
|
|
invoke-interface {v7}, Le0/v/m;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "POST"
|
|
|
|
invoke-virtual {v1, v8, v7, v4}, Le0/r$a;->a(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_5
|
|
instance-of v8, v7, Le0/v/n;
|
|
|
|
if-eqz v8, :cond_6
|
|
|
|
check-cast v7, Le0/v/n;
|
|
|
|
invoke-interface {v7}, Le0/v/n;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "PUT"
|
|
|
|
invoke-virtual {v1, v8, v7, v4}, Le0/r$a;->a(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_6
|
|
instance-of v8, v7, Le0/v/k;
|
|
|
|
if-eqz v8, :cond_7
|
|
|
|
check-cast v7, Le0/v/k;
|
|
|
|
invoke-interface {v7}, Le0/v/k;->value()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "OPTIONS"
|
|
|
|
invoke-virtual {v1, v8, v7, v5}, Le0/r$a;->a(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_7
|
|
instance-of v8, v7, Le0/v/g;
|
|
|
|
if-eqz v8, :cond_8
|
|
|
|
check-cast v7, Le0/v/g;
|
|
|
|
invoke-interface {v7}, Le0/v/g;->method()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v7}, Le0/v/g;->path()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-interface {v7}, Le0/v/g;->hasBody()Z
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual {v1, v8, v9, v7}, Le0/r$a;->a(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_8
|
|
instance-of v8, v7, Le0/v/i;
|
|
|
|
if-eqz v8, :cond_e
|
|
|
|
check-cast v7, Le0/v/i;
|
|
|
|
invoke-interface {v7}, Le0/v/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;->a(Ljava/lang/String;)Lokhttp3/MediaType;
|
|
|
|
move-result-object v12
|
|
|
|
if-eqz v12, :cond_9
|
|
|
|
iput-object v12, v1, Le0/r$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}, Le0/r$a;->a(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}, Le0/r$a;->a(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;->a()Lokhttp3/Headers;
|
|
|
|
move-result-object v7
|
|
|
|
iput-object v7, v1, Le0/r$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}, Le0/r$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_e
|
|
instance-of v7, v7, Le0/v/j;
|
|
|
|
if-eqz v7, :cond_10
|
|
|
|
iget-boolean v7, v1, Le0/r$a;->o:Z
|
|
|
|
if-nez v7, :cond_f
|
|
|
|
iput-boolean v4, v1, Le0/r$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}, Le0/r$a;->a(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, Le0/r$a;->m:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_63
|
|
|
|
iget-boolean v0, v1, Le0/r$a;->n:Z
|
|
|
|
if-nez v0, :cond_14
|
|
|
|
iget-boolean v0, v1, Le0/r$a;->p:Z
|
|
|
|
if-nez v0, :cond_13
|
|
|
|
iget-boolean v0, v1, Le0/r$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}, Le0/r$a;->a(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}, Le0/r$a;->a(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, Le0/r$a;->d:[[Ljava/lang/annotation/Annotation;
|
|
|
|
array-length v0, v0
|
|
|
|
new-array v2, v0, [Le0/l;
|
|
|
|
iput-object v2, v1, Le0/r$a;->u:[Le0/l;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_5
|
|
if-ge v2, v0, :cond_5a
|
|
|
|
iget-object v6, v1, Le0/r$a;->e:[Ljava/lang/reflect/Type;
|
|
|
|
aget-object v6, v6, v2
|
|
|
|
invoke-static {v6}, Le0/s;->d(Ljava/lang/reflect/Type;)Z
|
|
|
|
move-result v7
|
|
|
|
if-nez v7, :cond_59
|
|
|
|
iget-object v7, v1, Le0/r$a;->d:[[Ljava/lang/annotation/Annotation;
|
|
|
|
aget-object v7, v7, v2
|
|
|
|
const-string v8, "No Retrofit annotation found."
|
|
|
|
if-eqz v7, :cond_58
|
|
|
|
iget-object v9, v1, Le0/r$a;->u:[Le0/l;
|
|
|
|
array-length v10, v7
|
|
|
|
const/4 v11, 0x0
|
|
|
|
:goto_6
|
|
if-ge v11, v10, :cond_56
|
|
|
|
aget-object v12, v7, v11
|
|
|
|
const-class v13, Lokhttp3/MultipartBody$Part;
|
|
|
|
instance-of v14, v12, Le0/v/v;
|
|
|
|
const-string v15, "@Path parameters may not be used with @Url."
|
|
|
|
if-eqz v14, :cond_1b
|
|
|
|
iget-boolean v12, v1, Le0/r$a;->l:Z
|
|
|
|
if-nez v12, :cond_1a
|
|
|
|
iget-boolean v12, v1, Le0/r$a;->j:Z
|
|
|
|
if-nez v12, :cond_19
|
|
|
|
iget-boolean v12, v1, Le0/r$a;->k:Z
|
|
|
|
if-nez v12, :cond_18
|
|
|
|
iget-object v12, v1, Le0/r$a;->q:Ljava/lang/String;
|
|
|
|
if-nez v12, :cond_17
|
|
|
|
iput-boolean v4, v1, Le0/r$a;->l:Z
|
|
|
|
const-class v4, Lb0/u;
|
|
|
|
if-eq v6, v4, :cond_16
|
|
|
|
const-class v4, Ljava/lang/String;
|
|
|
|
if-eq v6, v4, :cond_16
|
|
|
|
const-class v4, Ljava/net/URI;
|
|
|
|
if-eq v6, v4, :cond_16
|
|
|
|
instance-of v4, v6, Ljava/lang/Class;
|
|
|
|
if-eqz v4, :cond_15
|
|
|
|
move-object v4, v6
|
|
|
|
check-cast v4, Ljava/lang/Class;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v12, "android.net.Uri"
|
|
|
|
invoke-virtual {v12, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_15
|
|
|
|
goto :goto_7
|
|
|
|
:cond_15
|
|
new-array v0, v5, [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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_16
|
|
:goto_7
|
|
new-instance v4, Le0/l$l;
|
|
|
|
invoke-direct {v4}, Le0/l$l;-><init>()V
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_17
|
|
new-array v0, v4, [Ljava/lang/Object;
|
|
|
|
iget-object v3, v1, Le0/r$a;->m:Ljava/lang/String;
|
|
|
|
aput-object v3, v0, v5
|
|
|
|
const-string v3, "@Url cannot be used with @%s URL"
|
|
|
|
invoke-virtual {v1, v2, v3, v0}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_18
|
|
new-array v0, v5, [Ljava/lang/Object;
|
|
|
|
const-string v3, "A @Url parameter must not come after a @Query"
|
|
|
|
invoke-virtual {v1, v2, v3, v0}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_19
|
|
new-array v0, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v15, v0}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_1a
|
|
new-array v0, v5, [Ljava/lang/Object;
|
|
|
|
const-string v3, "Multiple @Url method annotations found."
|
|
|
|
invoke-virtual {v1, v2, v3, v0}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_1b
|
|
instance-of v5, v12, Le0/v/q;
|
|
|
|
const/4 v14, 0x2
|
|
|
|
if-eqz v5, :cond_21
|
|
|
|
iget-boolean v5, v1, Le0/r$a;->k:Z
|
|
|
|
if-nez v5, :cond_20
|
|
|
|
iget-boolean v5, v1, Le0/r$a;->l:Z
|
|
|
|
if-nez v5, :cond_1f
|
|
|
|
iget-object v5, v1, Le0/r$a;->q:Ljava/lang/String;
|
|
|
|
if-eqz v5, :cond_1e
|
|
|
|
iput-boolean v4, v1, Le0/r$a;->j:Z
|
|
|
|
check-cast v12, Le0/v/q;
|
|
|
|
invoke-interface {v12}, Le0/v/q;->value()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
sget-object v13, Le0/r;->n:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v13, v5}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v13}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_1d
|
|
|
|
iget-object v13, v1, Le0/r$a;->t:Ljava/util/Set;
|
|
|
|
invoke-interface {v13, v5}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_1c
|
|
|
|
iget-object v4, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v4, v6, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v4
|
|
|
|
new-instance v13, Le0/l$g;
|
|
|
|
invoke-interface {v12}, Le0/v/q;->encoded()Z
|
|
|
|
move-result v12
|
|
|
|
invoke-direct {v13, v5, v4, v12}, Le0/l$g;-><init>(Ljava/lang/String;Le0/e;Z)V
|
|
|
|
:goto_8
|
|
move-object v12, v13
|
|
|
|
goto/16 :goto_b
|
|
|
|
:cond_1c
|
|
new-array v0, v14, [Ljava/lang/Object;
|
|
|
|
iget-object v3, v1, Le0/r$a;->q:Ljava/lang/String;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
aput-object v3, v0, v6
|
|
|
|
aput-object v5, v0, v4
|
|
|
|
const-string v3, "URL \"%s\" does not contain \"{%s}\"."
|
|
|
|
invoke-virtual {v1, v2, v3, v0}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_1d
|
|
const/4 v0, 0x0
|
|
|
|
new-array v3, v14, [Ljava/lang/Object;
|
|
|
|
sget-object v6, Le0/r;->m:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v6}, Ljava/util/regex/Pattern;->pattern()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
aput-object v6, v3, v0
|
|
|
|
aput-object v5, v3, v4
|
|
|
|
const-string v0, "@Path parameter name must match %s. Found: %s"
|
|
|
|
invoke-virtual {v1, v2, v0, v3}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_1e
|
|
const/4 v0, 0x0
|
|
|
|
new-array v3, v4, [Ljava/lang/Object;
|
|
|
|
iget-object v4, v1, Le0/r$a;->m:Ljava/lang/String;
|
|
|
|
aput-object v4, v3, v0
|
|
|
|
const-string v0, "@Path can only be used with relative url on @%s"
|
|
|
|
invoke-virtual {v1, v2, v0, v3}, Le0/r$a;->a(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}, Le0/r$a;->a(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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_21
|
|
instance-of v5, v12, Le0/v/r;
|
|
|
|
const-string v14, "<String>)"
|
|
|
|
const-string v15, " must include generic type (e.g., "
|
|
|
|
if-eqz v5, :cond_25
|
|
|
|
check-cast v12, Le0/v/r;
|
|
|
|
invoke-interface {v12}, Le0/v/r;->value()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v12}, Le0/v/r;->encoded()Z
|
|
|
|
move-result v12
|
|
|
|
invoke-static {v6}, Le0/s;->c(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v13
|
|
|
|
iput-boolean v4, v1, Le0/r$a;->k:Z
|
|
|
|
const-class v4, Ljava/lang/Iterable;
|
|
|
|
invoke-virtual {v4, v13}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_23
|
|
|
|
instance-of v4, v6, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v4, :cond_22
|
|
|
|
move-object v4, v6
|
|
|
|
check-cast v4, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v13, 0x0
|
|
|
|
invoke-static {v13, v4}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v13, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v13, v4, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v4
|
|
|
|
new-instance v13, Le0/l$h;
|
|
|
|
invoke-direct {v13, v5, v4, v12}, Le0/l$h;-><init>(Ljava/lang/String;Le0/e;Z)V
|
|
|
|
new-instance v4, Le0/j;
|
|
|
|
invoke-direct {v4, v13}, Le0/j;-><init>(Le0/l;)V
|
|
|
|
goto :goto_9
|
|
|
|
:cond_22
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v13}, 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 {v13}, 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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_23
|
|
invoke-virtual {v13}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_24
|
|
|
|
invoke-virtual {v13}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4}, Le0/r;->a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v13, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v13, v4, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v4
|
|
|
|
new-instance v13, Le0/l$h;
|
|
|
|
invoke-direct {v13, v5, v4, v12}, Le0/l$h;-><init>(Ljava/lang/String;Le0/e;Z)V
|
|
|
|
new-instance v4, Le0/k;
|
|
|
|
invoke-direct {v4, v13}, Le0/k;-><init>(Le0/l;)V
|
|
|
|
:goto_9
|
|
move-object v12, v4
|
|
|
|
goto/16 :goto_b
|
|
|
|
:cond_24
|
|
iget-object v4, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v4, v6, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v4
|
|
|
|
new-instance v13, Le0/l$h;
|
|
|
|
invoke-direct {v13, v5, v4, v12}, Le0/l$h;-><init>(Ljava/lang/String;Le0/e;Z)V
|
|
|
|
move-object v4, v13
|
|
|
|
goto :goto_9
|
|
|
|
:cond_25
|
|
instance-of v4, v12, Le0/v/t;
|
|
|
|
if-eqz v4, :cond_29
|
|
|
|
check-cast v12, Le0/v/t;
|
|
|
|
invoke-interface {v12}, Le0/v/t;->encoded()Z
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v6}, Le0/s;->c(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v12, 0x1
|
|
|
|
iput-boolean v12, v1, Le0/r$a;->k:Z
|
|
|
|
const-class v12, Ljava/lang/Iterable;
|
|
|
|
invoke-virtual {v12, v5}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_27
|
|
|
|
instance-of v12, v6, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v12, :cond_26
|
|
|
|
move-object v5, v6
|
|
|
|
check-cast v5, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v12, 0x0
|
|
|
|
invoke-static {v12, v5}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v5
|
|
|
|
iget-object v12, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v12, v5, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v5
|
|
|
|
new-instance v12, Le0/l$j;
|
|
|
|
invoke-direct {v12, v5, v4}, Le0/l$j;-><init>(Le0/e;Z)V
|
|
|
|
new-instance v4, Le0/j;
|
|
|
|
invoke-direct {v4, v12}, Le0/j;-><init>(Le0/l;)V
|
|
|
|
goto :goto_9
|
|
|
|
:cond_26
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v5}, 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 {v5}, 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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_27
|
|
invoke-virtual {v5}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_28
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v5}, Le0/r;->a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
move-result-object v5
|
|
|
|
iget-object v12, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v12, v5, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v5
|
|
|
|
new-instance v12, Le0/l$j;
|
|
|
|
invoke-direct {v12, v5, v4}, Le0/l$j;-><init>(Le0/e;Z)V
|
|
|
|
new-instance v4, Le0/k;
|
|
|
|
invoke-direct {v4, v12}, Le0/k;-><init>(Le0/l;)V
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_28
|
|
iget-object v5, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v5, v6, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v5
|
|
|
|
new-instance v12, Le0/l$j;
|
|
|
|
invoke-direct {v12, v5, v4}, Le0/l$j;-><init>(Le0/e;Z)V
|
|
|
|
move-object v4, v12
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_29
|
|
instance-of v4, v12, Le0/v/s;
|
|
|
|
const-string v5, "Map must include generic types (e.g., Map<String, String>)"
|
|
|
|
if-eqz v4, :cond_2d
|
|
|
|
invoke-static {v6}, Le0/s;->c(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 {v6, v4, v13}, Le0/s;->b(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 v5, 0x0
|
|
|
|
invoke-static {v5, v4}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v5
|
|
|
|
const-class v13, Ljava/lang/String;
|
|
|
|
if-ne v13, v5, :cond_2a
|
|
|
|
const/4 v5, 0x1
|
|
|
|
invoke-static {v5, v4}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v5, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v5, v4, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v4
|
|
|
|
new-instance v5, Le0/l$i;
|
|
|
|
check-cast v12, Le0/v/s;
|
|
|
|
invoke-interface {v12}, Le0/v/s;->encoded()Z
|
|
|
|
move-result v12
|
|
|
|
invoke-direct {v5, v4, v12}, Le0/l$i;-><init>(Le0/e;Z)V
|
|
|
|
goto/16 :goto_a
|
|
|
|
:cond_2a
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "@QueryMap keys must be of type String: "
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_2b
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v5, v0}, Le0/r$a;->a(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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_2d
|
|
instance-of v4, v12, Le0/v/h;
|
|
|
|
if-eqz v4, :cond_31
|
|
|
|
check-cast v12, Le0/v/h;
|
|
|
|
invoke-interface {v12}, Le0/v/h;->value()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v6}, Le0/s;->c(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v5
|
|
|
|
const-class v12, Ljava/lang/Iterable;
|
|
|
|
invoke-virtual {v12, v5}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_2f
|
|
|
|
instance-of v12, v6, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v12, :cond_2e
|
|
|
|
move-object v5, v6
|
|
|
|
check-cast v5, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v12, 0x0
|
|
|
|
invoke-static {v12, v5}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v5
|
|
|
|
iget-object v12, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v12, v5, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v5
|
|
|
|
new-instance v12, Le0/l$d;
|
|
|
|
invoke-direct {v12, v4, v5}, Le0/l$d;-><init>(Ljava/lang/String;Le0/e;)V
|
|
|
|
new-instance v4, Le0/j;
|
|
|
|
invoke-direct {v4, v12}, Le0/j;-><init>(Le0/l;)V
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_2e
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v5}, 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 {v5}, 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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_2f
|
|
invoke-virtual {v5}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_30
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v5}, Le0/r;->a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
move-result-object v5
|
|
|
|
iget-object v12, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v12, v5, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v5
|
|
|
|
new-instance v12, Le0/l$d;
|
|
|
|
invoke-direct {v12, v4, v5}, Le0/l$d;-><init>(Ljava/lang/String;Le0/e;)V
|
|
|
|
new-instance v4, Le0/k;
|
|
|
|
invoke-direct {v4, v12}, Le0/k;-><init>(Le0/l;)V
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_30
|
|
iget-object v5, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v5, v6, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v5
|
|
|
|
new-instance v12, Le0/l$d;
|
|
|
|
invoke-direct {v12, v4, v5}, Le0/l$d;-><init>(Ljava/lang/String;Le0/e;)V
|
|
|
|
goto/16 :goto_b
|
|
|
|
:cond_31
|
|
instance-of v4, v12, Le0/v/c;
|
|
|
|
if-eqz v4, :cond_36
|
|
|
|
iget-boolean v4, v1, Le0/r$a;->o:Z
|
|
|
|
if-eqz v4, :cond_35
|
|
|
|
check-cast v12, Le0/v/c;
|
|
|
|
invoke-interface {v12}, Le0/v/c;->value()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v12}, Le0/v/c;->encoded()Z
|
|
|
|
move-result v5
|
|
|
|
const/4 v12, 0x1
|
|
|
|
iput-boolean v12, v1, Le0/r$a;->g:Z
|
|
|
|
invoke-static {v6}, Le0/s;->c(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v12
|
|
|
|
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_33
|
|
|
|
instance-of v13, v6, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v13, :cond_32
|
|
|
|
move-object v12, v6
|
|
|
|
check-cast v12, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v13, 0x0
|
|
|
|
invoke-static {v13, v12}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v12
|
|
|
|
iget-object v13, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v13, v12, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v12
|
|
|
|
new-instance v13, Le0/l$b;
|
|
|
|
invoke-direct {v13, v4, v12, v5}, Le0/l$b;-><init>(Ljava/lang/String;Le0/e;Z)V
|
|
|
|
new-instance v4, Le0/j;
|
|
|
|
invoke-direct {v4, v13}, Le0/j;-><init>(Le0/l;)V
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_32
|
|
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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_33
|
|
invoke-virtual {v12}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_34
|
|
|
|
invoke-virtual {v12}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-static {v12}, Le0/r;->a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
|
|
move-result-object v12
|
|
|
|
iget-object v13, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v13, v12, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v12
|
|
|
|
new-instance v13, Le0/l$b;
|
|
|
|
invoke-direct {v13, v4, v12, v5}, Le0/l$b;-><init>(Ljava/lang/String;Le0/e;Z)V
|
|
|
|
new-instance v4, Le0/k;
|
|
|
|
invoke-direct {v4, v13}, Le0/k;-><init>(Le0/l;)V
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_34
|
|
iget-object v12, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v12, v6, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v12
|
|
|
|
new-instance v13, Le0/l$b;
|
|
|
|
invoke-direct {v13, v4, v12, v5}, Le0/l$b;-><init>(Ljava/lang/String;Le0/e;Z)V
|
|
|
|
goto/16 :goto_8
|
|
|
|
: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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_36
|
|
instance-of v4, v12, Le0/v/d;
|
|
|
|
if-eqz v4, :cond_3b
|
|
|
|
iget-boolean v4, v1, Le0/r$a;->o:Z
|
|
|
|
if-eqz v4, :cond_3a
|
|
|
|
invoke-static {v6}, Le0/s;->c(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 {v6, v4, v13}, Le0/s;->b(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 v5, 0x0
|
|
|
|
invoke-static {v5, v4}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v5
|
|
|
|
const-class v13, Ljava/lang/String;
|
|
|
|
if-ne v13, v5, :cond_37
|
|
|
|
const/4 v5, 0x1
|
|
|
|
invoke-static {v5, v4}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v13, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
invoke-virtual {v13, v4, v7}, Le0/q;->c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v4
|
|
|
|
iput-boolean v5, v1, Le0/r$a;->g:Z
|
|
|
|
new-instance v5, Le0/l$c;
|
|
|
|
check-cast v12, Le0/v/d;
|
|
|
|
invoke-interface {v12}, Le0/v/d;->encoded()Z
|
|
|
|
move-result v12
|
|
|
|
invoke-direct {v5, v4, v12}, Le0/l$c;-><init>(Le0/e;Z)V
|
|
|
|
goto/16 :goto_a
|
|
|
|
:cond_37
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "@FieldMap keys must be of type String: "
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_38
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v5, v0}, Le0/r$a;->a(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}, Le0/r$a;->a(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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_3b
|
|
instance-of v4, v12, Le0/v/o;
|
|
|
|
if-eqz v4, :cond_4a
|
|
|
|
iget-boolean v4, v1, Le0/r$a;->p:Z
|
|
|
|
if-eqz v4, :cond_49
|
|
|
|
check-cast v12, Le0/v/o;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
iput-boolean v4, v1, Le0/r$a;->h:Z
|
|
|
|
invoke-interface {v12}, Le0/v/o;->value()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v6}, Le0/s;->c(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v4}, Ljava/lang/String;->isEmpty()Z
|
|
|
|
move-result v16
|
|
|
|
if-eqz v16, :cond_42
|
|
|
|
const-class v4, Ljava/lang/Iterable;
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v4
|
|
|
|
const-string v12, "@Part annotation must supply a name or use MultipartBody.Part parameter type."
|
|
|
|
if-eqz v4, :cond_3e
|
|
|
|
instance-of v4, v6, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v4, :cond_3d
|
|
|
|
move-object v4, v6
|
|
|
|
check-cast v4, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-static {v5, v4}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4}, Le0/s;->c(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-eqz v4, :cond_3c
|
|
|
|
sget-object v4, Le0/l$k;->a:Le0/l$k;
|
|
|
|
new-instance v5, Le0/j;
|
|
|
|
invoke-direct {v5, v4}, Le0/j;-><init>(Le0/l;)V
|
|
|
|
move-object v4, v5
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_3c
|
|
new-array v0, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v12, v0}, Le0/r$a;->a(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 {v5}, 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 {v5}, 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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_3e
|
|
invoke-virtual {v5}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_40
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v13, v4}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_3f
|
|
|
|
sget-object v4, Le0/l$k;->a:Le0/l$k;
|
|
|
|
new-instance v5, Le0/k;
|
|
|
|
invoke-direct {v5, v4}, Le0/k;-><init>(Le0/l;)V
|
|
|
|
:goto_a
|
|
move-object v12, v5
|
|
|
|
goto :goto_b
|
|
|
|
:cond_3f
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v12, v0}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_40
|
|
const/4 v4, 0x0
|
|
|
|
invoke-virtual {v13, v5}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_41
|
|
|
|
sget-object v5, Le0/l$k;->a:Le0/l$k;
|
|
|
|
goto :goto_a
|
|
|
|
:goto_b
|
|
move/from16 v17, v0
|
|
|
|
move-object/from16 v18, v8
|
|
|
|
move/from16 v16, v10
|
|
|
|
goto/16 :goto_d
|
|
|
|
:cond_41
|
|
new-array v0, v4, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v12, v0}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_42
|
|
const/16 v16, 0x0
|
|
|
|
move/from16 v17, v0
|
|
|
|
const/4 v0, 0x4
|
|
|
|
new-array v0, v0, [Ljava/lang/String;
|
|
|
|
const-string v18, "Content-Disposition"
|
|
|
|
aput-object v18, v0, v16
|
|
|
|
move/from16 v16, v10
|
|
|
|
const-string v10, "form-data; name=\""
|
|
|
|
move-object/from16 v18, v8
|
|
|
|
const-string v8, "\""
|
|
|
|
invoke-static {v10, v4, v8}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v8, 0x1
|
|
|
|
aput-object v4, v0, v8
|
|
|
|
const-string v4, "Content-Transfer-Encoding"
|
|
|
|
const/4 v8, 0x2
|
|
|
|
aput-object v4, v0, v8
|
|
|
|
const/4 v4, 0x3
|
|
|
|
invoke-interface {v12}, Le0/v/o;->encoding()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
aput-object v8, v0, v4
|
|
|
|
invoke-static {v0}, Lokhttp3/Headers;->a([Ljava/lang/String;)Lokhttp3/Headers;
|
|
|
|
move-result-object v0
|
|
|
|
const-class v4, Ljava/lang/Iterable;
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v4
|
|
|
|
const-string v8, "@Part parameters using the MultipartBody.Part must not include a part name in the annotation."
|
|
|
|
if-eqz v4, :cond_45
|
|
|
|
instance-of v4, v6, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v4, :cond_44
|
|
|
|
move-object v4, v6
|
|
|
|
check-cast v4, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-static {v5, v4}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4}, Le0/s;->c(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v13, v5}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_43
|
|
|
|
iget-object v5, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
iget-object v8, v1, Le0/r$a;->c:[Ljava/lang/annotation/Annotation;
|
|
|
|
invoke-virtual {v5, v4, v7, v8}, Le0/q;->a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v4
|
|
|
|
new-instance v5, Le0/l$e;
|
|
|
|
invoke-direct {v5, v0, v4}, Le0/l$e;-><init>(Lokhttp3/Headers;Le0/e;)V
|
|
|
|
new-instance v12, Le0/j;
|
|
|
|
invoke-direct {v12, v5}, Le0/j;-><init>(Le0/l;)V
|
|
|
|
goto/16 :goto_d
|
|
|
|
:cond_43
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v8, v0}, Le0/r$a;->a(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 {v5}, 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 {v5}, 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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_45
|
|
invoke-virtual {v5}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_47
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4}, Le0/r;->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 v5
|
|
|
|
if-nez v5, :cond_46
|
|
|
|
iget-object v5, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
iget-object v8, v1, Le0/r$a;->c:[Ljava/lang/annotation/Annotation;
|
|
|
|
invoke-virtual {v5, v4, v7, v8}, Le0/q;->a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v4
|
|
|
|
new-instance v5, Le0/l$e;
|
|
|
|
invoke-direct {v5, v0, v4}, Le0/l$e;-><init>(Lokhttp3/Headers;Le0/e;)V
|
|
|
|
new-instance v12, Le0/k;
|
|
|
|
invoke-direct {v12, v5}, Le0/k;-><init>(Le0/l;)V
|
|
|
|
goto/16 :goto_d
|
|
|
|
:cond_46
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v8, v0}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_47
|
|
invoke-virtual {v13, v5}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_48
|
|
|
|
iget-object v4, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
iget-object v5, v1, Le0/r$a;->c:[Ljava/lang/annotation/Annotation;
|
|
|
|
invoke-virtual {v4, v6, v7, v5}, Le0/q;->a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v4
|
|
|
|
new-instance v5, Le0/l$e;
|
|
|
|
invoke-direct {v5, v0, v4}, Le0/l$e;-><init>(Lokhttp3/Headers;Le0/e;)V
|
|
|
|
move-object v12, v5
|
|
|
|
goto/16 :goto_d
|
|
|
|
:cond_48
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v8, v0}, Le0/r$a;->a(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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_4a
|
|
move/from16 v17, v0
|
|
|
|
move-object/from16 v18, v8
|
|
|
|
move/from16 v16, v10
|
|
|
|
instance-of v0, v12, Le0/v/p;
|
|
|
|
if-eqz v0, :cond_50
|
|
|
|
iget-boolean v0, v1, Le0/r$a;->p:Z
|
|
|
|
if-eqz v0, :cond_4f
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, v1, Le0/r$a;->h:Z
|
|
|
|
invoke-static {v6}, Le0/s;->c(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
const-class v4, Ljava/util/Map;
|
|
|
|
invoke-virtual {v4, v0}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_4e
|
|
|
|
const-class v4, Ljava/util/Map;
|
|
|
|
invoke-static {v6, v0, v4}, Le0/s;->b(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v4, v0, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v4, :cond_4d
|
|
|
|
check-cast v0, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-static {v4, v0}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v4
|
|
|
|
const-class v5, Ljava/lang/String;
|
|
|
|
if-ne v5, v4, :cond_4c
|
|
|
|
const/4 v4, 0x1
|
|
|
|
invoke-static {v4, v0}, Le0/s;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Le0/s;->c(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, Le0/r$a;->a:Le0/q;
|
|
|
|
iget-object v5, v1, Le0/r$a;->c:[Ljava/lang/annotation/Annotation;
|
|
|
|
invoke-virtual {v4, v0, v7, v5}, Le0/q;->a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;)Le0/e;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v12, Le0/v/p;
|
|
|
|
new-instance v4, Le0/l$f;
|
|
|
|
invoke-interface {v12}, Le0/v/p;->encoding()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-direct {v4, v0, v5}, Le0/l$f;-><init>(Le0/e;Ljava/lang/String;)V
|
|
|
|
:goto_c
|
|
move-object v12, v4
|
|
|
|
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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_4c
|
|
const/4 v0, 0x0
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v5, "@PartMap keys must be of type String: "
|
|
|
|
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v3, v0}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_4d
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v5, v0}, Le0/r$a;->a(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}, Le0/r$a;->a(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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_50
|
|
instance-of v0, v12, Le0/v/a;
|
|
|
|
if-eqz v0, :cond_53
|
|
|
|
iget-boolean v0, v1, Le0/r$a;->o:Z
|
|
|
|
if-nez v0, :cond_52
|
|
|
|
iget-boolean v0, v1, Le0/r$a;->p:Z
|
|
|
|
if-nez v0, :cond_52
|
|
|
|
iget-boolean v0, v1, Le0/r$a;->i:Z
|
|
|
|
if-nez v0, :cond_51
|
|
|
|
:try_start_2
|
|
iget-object v0, v1, Le0/r$a;->a:Le0/q;
|
|
|
|
iget-object v4, v1, Le0/r$a;->c:[Ljava/lang/annotation/Annotation;
|
|
|
|
invoke-virtual {v0, v6, v7, v4}, Le0/q;->a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;)Le0/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, Le0/r$a;->i:Z
|
|
|
|
new-instance v4, Le0/l$a;
|
|
|
|
invoke-direct {v4, v0}, Le0/l$a;-><init>(Le0/e;)V
|
|
|
|
goto :goto_c
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
new-array v4, v3, [Ljava/lang/Object;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput-object v6, v4, v5
|
|
|
|
const-string v5, "Unable to create @Body converter for %s"
|
|
|
|
const-string v6, " (parameter #"
|
|
|
|
invoke-static {v5, v6}, Le/e/b/a/a;->b(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}, Le0/r$a;->a(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}, Le0/r$a;->a(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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_53
|
|
const/4 v12, 0x0
|
|
|
|
:goto_d
|
|
if-nez v12, :cond_54
|
|
|
|
goto :goto_e
|
|
|
|
:cond_54
|
|
if-nez v3, :cond_55
|
|
|
|
move-object v3, v12
|
|
|
|
:goto_e
|
|
add-int/lit8 v11, v11, 0x1
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move/from16 v10, v16
|
|
|
|
move/from16 v0, v17
|
|
|
|
move-object/from16 v8, 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}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_56
|
|
move/from16 v17, v0
|
|
|
|
move-object/from16 v18, v8
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz v3, :cond_57
|
|
|
|
aput-object v3, v9, v2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move/from16 v0, v17
|
|
|
|
goto/16 :goto_5
|
|
|
|
:cond_57
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
move-object/from16 v3, v18
|
|
|
|
invoke-virtual {v1, v2, v3, v0}, Le0/r$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_58
|
|
move-object v3, v8
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v3, v0}, Le0/r$a;->a(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 v6, v3, v0
|
|
|
|
const-string v0, "Parameter type must not include a type variable or wildcard: %s"
|
|
|
|
invoke-virtual {v1, v2, v0, v3}, Le0/r$a;->a(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, Le0/r$a;->q:Ljava/lang/String;
|
|
|
|
if-nez v2, :cond_5c
|
|
|
|
iget-boolean v2, v1, Le0/r$a;->l:Z
|
|
|
|
if-eqz v2, :cond_5b
|
|
|
|
goto :goto_f
|
|
|
|
:cond_5b
|
|
new-array v2, v4, [Ljava/lang/Object;
|
|
|
|
iget-object v3, v1, Le0/r$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}, Le0/r$a;->a(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, Le0/r$a;->o:Z
|
|
|
|
if-nez v0, :cond_5e
|
|
|
|
iget-boolean v0, v1, Le0/r$a;->p:Z
|
|
|
|
if-nez v0, :cond_5e
|
|
|
|
iget-boolean v0, v1, Le0/r$a;->n:Z
|
|
|
|
if-nez v0, :cond_5e
|
|
|
|
iget-boolean v0, v1, Le0/r$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}, Le0/r$a;->a(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, Le0/r$a;->o:Z
|
|
|
|
if-eqz v0, :cond_60
|
|
|
|
iget-boolean v0, v1, Le0/r$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}, Le0/r$a;->a(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, Le0/r$a;->p:Z
|
|
|
|
if-eqz v0, :cond_62
|
|
|
|
iget-boolean v0, v1, Le0/r$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}, Le0/r$a;->a(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, Le0/r;
|
|
|
|
invoke-direct {v0, v1}, Le0/r;-><init>(Le0/r$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}, Le0/r$a;->a(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, Le0/r$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}, Le0/r$a;->a(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}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v2, v1, Le0/r$a;->f:Ljava/lang/reflect/Type;
|
|
|
|
invoke-static {v2}, Le0/s;->c(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}, Le0/r$a;->a(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}, Le0/r$a;->a(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}, Le0/r$a;->a(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}, Le0/r$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final varargs a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
.locals 1
|
|
|
|
const-string v0, " (parameter #"
|
|
|
|
invoke-static {p2, v0}, Le/e/b/a/a;->b(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}, Le0/r$a;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final varargs a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, v0, p1, p2}, Le0/r$a;->a(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 a(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}, Le/e/b/a/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p2
|
|
|
|
iget-object v0, p0, Le0/r$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, Le0/r$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 a(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Le0/r$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, Le0/r$a;->m:Ljava/lang/String;
|
|
|
|
iput-boolean p3, p0, Le0/r$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, Le0/r;->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}, Le0/r$a;->a(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, Le0/r$a;->q:Ljava/lang/String;
|
|
|
|
sget-object p1, Le0/r;->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-interface {p2, p3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
iput-object p2, p0, Le0/r$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}, Le0/r$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|