1016 lines
22 KiB
Smali
1016 lines
22 KiB
Smali
.class public final Lb/n;
|
|
.super Ljava/lang/Object;
|
|
.source "Retrofit.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lb/n$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final bEK:Lokhttp3/s;
|
|
|
|
.field private final bEU:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/reflect/Method;",
|
|
"Lb/o<",
|
|
"**>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final bEV:Lokhttp3/e$a;
|
|
|
|
.field final bEW:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lb/e$a;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final bEX:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lb/c$a;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final bEY:Z
|
|
|
|
.field final bEm:Ljava/util/concurrent/Executor;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lokhttp3/e$a;Lokhttp3/s;Ljava/util/List;Ljava/util/List;Ljava/util/concurrent/Executor;Z)V
|
|
.locals 1
|
|
.param p5 # Ljava/util/concurrent/Executor;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lokhttp3/e$a;",
|
|
"Lokhttp3/s;",
|
|
"Ljava/util/List<",
|
|
"Lb/e$a;",
|
|
">;",
|
|
"Ljava/util/List<",
|
|
"Lb/c$a;",
|
|
">;",
|
|
"Ljava/util/concurrent/Executor;",
|
|
"Z)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lb/n;->bEU:Ljava/util/Map;
|
|
|
|
iput-object p1, p0, Lb/n;->bEV:Lokhttp3/e$a;
|
|
|
|
iput-object p2, p0, Lb/n;->bEK:Lokhttp3/s;
|
|
|
|
invoke-static {p3}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lb/n;->bEW:Ljava/util/List;
|
|
|
|
invoke-static {p4}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lb/n;->bEX:Ljava/util/List;
|
|
|
|
iput-object p5, p0, Lb/n;->bEm:Ljava/util/concurrent/Executor;
|
|
|
|
iput-boolean p6, p0, Lb/n;->bEY:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final V(Ljava/lang/Class;)Ljava/lang/Object;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static {p1}, Lb/p;->X(Ljava/lang/Class;)V
|
|
|
|
iget-boolean v0, p0, Lb/n;->bEY:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-static {}, Lb/k;->Iy()Lb/k;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getDeclaredMethods()[Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_0
|
|
if-ge v4, v3, :cond_1
|
|
|
|
aget-object v5, v2, v4
|
|
|
|
invoke-virtual {v0, v5}, Lb/k;->a(Ljava/lang/reflect/Method;)Z
|
|
|
|
move-result v6
|
|
|
|
if-nez v6, :cond_0
|
|
|
|
invoke-virtual {p0, v5}, Lb/n;->b(Ljava/lang/reflect/Method;)Lb/o;
|
|
|
|
:cond_0
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/Class;
|
|
|
|
aput-object p1, v2, v1
|
|
|
|
new-instance v1, Lb/n$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Lb/n$1;-><init>(Lb/n;Ljava/lang/Class;)V
|
|
|
|
invoke-static {v0, v2, v1}, Ljava/lang/reflect/Proxy;->newProxyInstance(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;)Lb/e;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/reflect/Type;",
|
|
"[",
|
|
"Ljava/lang/annotation/Annotation;",
|
|
"[",
|
|
"Ljava/lang/annotation/Annotation;",
|
|
")",
|
|
"Lb/e<",
|
|
"TT;",
|
|
"Lokhttp3/RequestBody;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "type == null"
|
|
|
|
invoke-static {p1, v0}, Lb/p;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const-string v0, "parameterAnnotations == null"
|
|
|
|
invoke-static {p2, v0}, Lb/p;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const-string p2, "methodAnnotations == null"
|
|
|
|
invoke-static {p3, p2}, Lb/p;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
iget-object p2, p0, Lb/n;->bEW:Ljava/util/List;
|
|
|
|
const/4 p3, 0x0
|
|
|
|
invoke-interface {p2, p3}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I
|
|
|
|
move-result p2
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
iget-object p3, p0, Lb/n;->bEW:Ljava/util/List;
|
|
|
|
invoke-interface {p3}, Ljava/util/List;->size()I
|
|
|
|
move-result p3
|
|
|
|
move v0, p2
|
|
|
|
:goto_0
|
|
if-ge v0, p3, :cond_1
|
|
|
|
iget-object v1, p0, Lb/n;->bEW:Ljava/util/List;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lb/e$a;
|
|
|
|
invoke-virtual {v1, p1}, Lb/e$a;->i(Ljava/lang/reflect/Type;)Lb/e;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance p3, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "Could not locate RequestBody converter for "
|
|
|
|
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, ".\n"
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, " Tried:"
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object p1, p0, Lb/n;->bEW:Ljava/util/List;
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
:goto_1
|
|
if-ge p2, p1, :cond_2
|
|
|
|
const-string v0, "\n * "
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v0, p0, Lb/n;->bEW:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lb/e$a;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
goto :goto_3
|
|
|
|
:goto_2
|
|
throw p1
|
|
|
|
:goto_3
|
|
goto :goto_2
|
|
.end method
|
|
|
|
.method public final b(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lb/e;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/reflect/Type;",
|
|
"[",
|
|
"Ljava/lang/annotation/Annotation;",
|
|
")",
|
|
"Lb/e<",
|
|
"TT;",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "type == null"
|
|
|
|
invoke-static {p1, v0}, Lb/p;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const-string p1, "annotations == null"
|
|
|
|
invoke-static {p2, p1}, Lb/p;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
iget-object p1, p0, Lb/n;->bEW:Ljava/util/List;
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:goto_0
|
|
if-ge p2, p1, :cond_0
|
|
|
|
iget-object v0, p0, Lb/n;->bEW:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object p1, Lb/a$d;->bEh:Lb/a$d;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method final b(Ljava/lang/reflect/Method;)Lb/o;
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/reflect/Method;",
|
|
")",
|
|
"Lb/o<",
|
|
"**>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lb/n;->bEU:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lb/o;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lb/n;->bEU:Ljava/util/Map;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lb/n;->bEU:Ljava/util/Map;
|
|
|
|
invoke-interface {v1, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lb/o;
|
|
|
|
if-nez v1, :cond_21
|
|
|
|
new-instance v1, Lb/o$a;
|
|
|
|
invoke-direct {v1, p0, p1}, Lb/o$a;-><init>(Lb/n;Ljava/lang/reflect/Method;)V
|
|
|
|
invoke-virtual {v1}, Lb/o$a;->ID()Lb/c;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v1, Lb/o$a;->bFe:Lb/c;
|
|
|
|
iget-object v2, v1, Lb/o$a;->bFe:Lb/c;
|
|
|
|
invoke-interface {v2}, Lb/c;->Is()Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v1, Lb/o$a;->bFo:Ljava/lang/reflect/Type;
|
|
|
|
iget-object v2, v1, Lb/o$a;->bFo:Ljava/lang/reflect/Type;
|
|
|
|
const-class v3, Lb/m;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-eq v2, v3, :cond_20
|
|
|
|
iget-object v2, v1, Lb/o$a;->bFo:Ljava/lang/reflect/Type;
|
|
|
|
const-class v3, Lokhttp3/Response;
|
|
|
|
if-eq v2, v3, :cond_20
|
|
|
|
invoke-virtual {v1}, Lb/o$a;->IE()Lb/e;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v1, Lb/o$a;->bFf:Lb/e;
|
|
|
|
iget-object v2, v1, Lb/o$a;->bFl:[Ljava/lang/annotation/Annotation;
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v6, 0x0
|
|
|
|
:goto_0
|
|
const/4 v7, 0x1
|
|
|
|
if-ge v6, v3, :cond_10
|
|
|
|
aget-object v8, v2, v6
|
|
|
|
instance-of v9, v8, Lb/c/b;
|
|
|
|
if-eqz v9, :cond_1
|
|
|
|
const-string v7, "DELETE"
|
|
|
|
check-cast v8, Lb/c/b;
|
|
|
|
invoke-interface {v8}, Lb/c/b;->value()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v1, v7, v8, v5}, Lb/o$a;->e(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_1
|
|
instance-of v9, v8, Lb/c/f;
|
|
|
|
if-eqz v9, :cond_2
|
|
|
|
const-string v7, "GET"
|
|
|
|
check-cast v8, Lb/c/f;
|
|
|
|
invoke-interface {v8}, Lb/c/f;->value()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v1, v7, v8, v5}, Lb/o$a;->e(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_2
|
|
instance-of v9, v8, Lb/c/g;
|
|
|
|
if-eqz v9, :cond_4
|
|
|
|
const-string v7, "HEAD"
|
|
|
|
check-cast v8, Lb/c/g;
|
|
|
|
invoke-interface {v8}, Lb/c/g;->value()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v1, v7, v8, v5}, Lb/o$a;->e(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
const-class v7, Ljava/lang/Void;
|
|
|
|
iget-object v8, v1, Lb/o$a;->bFo:Ljava/lang/reflect/Type;
|
|
|
|
invoke-virtual {v7, v8}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_3
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_3
|
|
const-string p1, "HEAD method must use Void as response type."
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_4
|
|
instance-of v9, v8, Lb/c/n;
|
|
|
|
if-eqz v9, :cond_5
|
|
|
|
const-string v9, "PATCH"
|
|
|
|
check-cast v8, Lb/c/n;
|
|
|
|
invoke-interface {v8}, Lb/c/n;->value()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v1, v9, v8, v7}, Lb/o$a;->e(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_5
|
|
instance-of v9, v8, Lb/c/o;
|
|
|
|
if-eqz v9, :cond_6
|
|
|
|
const-string v9, "POST"
|
|
|
|
check-cast v8, Lb/c/o;
|
|
|
|
invoke-interface {v8}, Lb/c/o;->value()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v1, v9, v8, v7}, Lb/o$a;->e(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_6
|
|
instance-of v9, v8, Lb/c/p;
|
|
|
|
if-eqz v9, :cond_7
|
|
|
|
const-string v9, "PUT"
|
|
|
|
check-cast v8, Lb/c/p;
|
|
|
|
invoke-interface {v8}, Lb/c/p;->value()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v1, v9, v8, v7}, Lb/o$a;->e(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_7
|
|
instance-of v9, v8, Lb/c/m;
|
|
|
|
if-eqz v9, :cond_8
|
|
|
|
const-string v7, "OPTIONS"
|
|
|
|
check-cast v8, Lb/c/m;
|
|
|
|
invoke-interface {v8}, Lb/c/m;->value()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v1, v7, v8, v5}, Lb/o$a;->e(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_8
|
|
instance-of v9, v8, Lb/c/h;
|
|
|
|
if-eqz v9, :cond_9
|
|
|
|
check-cast v8, Lb/c/h;
|
|
|
|
invoke-interface {v8}, Lb/c/h;->FK()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-interface {v8}, Lb/c/h;->II()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-interface {v8}, Lb/c/h;->IJ()Z
|
|
|
|
move-result v8
|
|
|
|
invoke-virtual {v1, v7, v9, v8}, Lb/o$a;->e(Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_9
|
|
instance-of v9, v8, Lb/c/k;
|
|
|
|
if-eqz v9, :cond_b
|
|
|
|
check-cast v8, Lb/c/k;
|
|
|
|
invoke-interface {v8}, Lb/c/k;->value()[Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
array-length v8, v7
|
|
|
|
if-eqz v8, :cond_a
|
|
|
|
invoke-virtual {v1, v7}, Lb/o$a;->h([Ljava/lang/String;)Lokhttp3/Headers;
|
|
|
|
move-result-object v7
|
|
|
|
iput-object v7, v1, Lb/o$a;->brH:Lokhttp3/Headers;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_a
|
|
const-string p1, "@Headers annotation is empty."
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_b
|
|
instance-of v9, v8, Lb/c/l;
|
|
|
|
if-eqz v9, :cond_d
|
|
|
|
iget-boolean v8, v1, Lb/o$a;->bFh:Z
|
|
|
|
if-nez v8, :cond_c
|
|
|
|
iput-boolean v7, v1, Lb/o$a;->bFi:Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_c
|
|
const-string p1, "Only one encoding annotation is allowed."
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_d
|
|
instance-of v8, v8, Lb/c/e;
|
|
|
|
if-eqz v8, :cond_f
|
|
|
|
iget-boolean v8, v1, Lb/o$a;->bFi:Z
|
|
|
|
if-nez v8, :cond_e
|
|
|
|
iput-boolean v7, v1, Lb/o$a;->bFh:Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_e
|
|
const-string p1, "Only one encoding annotation is allowed."
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_f
|
|
:goto_1
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_10
|
|
iget-object v2, v1, Lb/o$a;->bFg:Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_1f
|
|
|
|
iget-boolean v2, v1, Lb/o$a;->bEO:Z
|
|
|
|
if-nez v2, :cond_13
|
|
|
|
iget-boolean v2, v1, Lb/o$a;->bFi:Z
|
|
|
|
if-nez v2, :cond_12
|
|
|
|
iget-boolean v2, v1, Lb/o$a;->bFh:Z
|
|
|
|
if-nez v2, :cond_11
|
|
|
|
goto :goto_2
|
|
|
|
:cond_11
|
|
const-string p1, "FormUrlEncoded can only be specified on HTTP methods with request body (e.g., @POST)."
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_12
|
|
const-string p1, "Multipart can only be specified on HTTP methods with request body (e.g., @POST)."
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_13
|
|
:goto_2
|
|
iget-object v2, v1, Lb/o$a;->bFm:[[Ljava/lang/annotation/Annotation;
|
|
|
|
array-length v2, v2
|
|
|
|
new-array v3, v2, [Lb/j;
|
|
|
|
iput-object v3, v1, Lb/o$a;->bFj:[Lb/j;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_3
|
|
if-ge v3, v2, :cond_16
|
|
|
|
iget-object v6, v1, Lb/o$a;->bFn:[Ljava/lang/reflect/Type;
|
|
|
|
aget-object v6, v6, v3
|
|
|
|
invoke-static {v6}, Lb/p;->k(Ljava/lang/reflect/Type;)Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_15
|
|
|
|
iget-object v8, v1, Lb/o$a;->bFm:[[Ljava/lang/annotation/Annotation;
|
|
|
|
aget-object v8, v8, v3
|
|
|
|
if-eqz v8, :cond_14
|
|
|
|
iget-object v9, v1, Lb/o$a;->bFj:[Lb/j;
|
|
|
|
invoke-virtual {v1, v3, v6, v8}, Lb/o$a;->a(ILjava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Lb/j;
|
|
|
|
move-result-object v6
|
|
|
|
aput-object v6, v9, v3
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_14
|
|
const-string p1, "No Retrofit annotation found."
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v3, p1, v2}, Lb/o$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_15
|
|
const-string p1, "Parameter type must not include a type variable or wildcard: %s"
|
|
|
|
new-array v2, v7, [Ljava/lang/Object;
|
|
|
|
aput-object v6, v2, v5
|
|
|
|
invoke-virtual {v1, v3, p1, v2}, Lb/o$a;->a(ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_16
|
|
iget-object v2, v1, Lb/o$a;->bEL:Ljava/lang/String;
|
|
|
|
if-nez v2, :cond_18
|
|
|
|
iget-boolean v2, v1, Lb/o$a;->bFu:Z
|
|
|
|
if-eqz v2, :cond_17
|
|
|
|
goto :goto_4
|
|
|
|
:cond_17
|
|
const-string p1, "Missing either @%s URL or @Url parameter."
|
|
|
|
new-array v2, v7, [Ljava/lang/Object;
|
|
|
|
iget-object v3, v1, Lb/o$a;->bFg:Ljava/lang/String;
|
|
|
|
aput-object v3, v2, v5
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_18
|
|
:goto_4
|
|
iget-boolean v2, v1, Lb/o$a;->bFh:Z
|
|
|
|
if-nez v2, :cond_1a
|
|
|
|
iget-boolean v2, v1, Lb/o$a;->bFi:Z
|
|
|
|
if-nez v2, :cond_1a
|
|
|
|
iget-boolean v2, v1, Lb/o$a;->bEO:Z
|
|
|
|
if-nez v2, :cond_1a
|
|
|
|
iget-boolean v2, v1, Lb/o$a;->bFr:Z
|
|
|
|
if-nez v2, :cond_19
|
|
|
|
goto :goto_5
|
|
|
|
:cond_19
|
|
const-string p1, "Non-body HTTP method cannot contain @Body."
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_1a
|
|
:goto_5
|
|
iget-boolean v2, v1, Lb/o$a;->bFh:Z
|
|
|
|
if-eqz v2, :cond_1c
|
|
|
|
iget-boolean v2, v1, Lb/o$a;->bFp:Z
|
|
|
|
if-eqz v2, :cond_1b
|
|
|
|
goto :goto_6
|
|
|
|
:cond_1b
|
|
const-string p1, "Form-encoded method must contain at least one @Field."
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_1c
|
|
:goto_6
|
|
iget-boolean v2, v1, Lb/o$a;->bFi:Z
|
|
|
|
if-eqz v2, :cond_1e
|
|
|
|
iget-boolean v2, v1, Lb/o$a;->bFq:Z
|
|
|
|
if-eqz v2, :cond_1d
|
|
|
|
goto :goto_7
|
|
|
|
:cond_1d
|
|
const-string p1, "Multipart method must contain at least one @Part."
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_1e
|
|
:goto_7
|
|
new-instance v2, Lb/o;
|
|
|
|
invoke-direct {v2, v1}, Lb/o;-><init>(Lb/o$a;)V
|
|
|
|
iget-object v1, p0, Lb/n;->bEU:Ljava/util/Map;
|
|
|
|
invoke-interface {v1, p1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-object v1, v2
|
|
|
|
goto :goto_8
|
|
|
|
:cond_1f
|
|
const-string p1, "HTTP method annotation is required (e.g., @GET, @POST, etc.)."
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_20
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "\'"
|
|
|
|
invoke-direct {p1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v2, v1, Lb/o$a;->bFo:Ljava/lang/reflect/Type;
|
|
|
|
invoke-static {v2}, Lb/p;->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 {p1, 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 {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v4, p1, v2}, Lb/o$a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_21
|
|
:goto_8
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_a
|
|
|
|
:goto_9
|
|
throw p1
|
|
|
|
:goto_a
|
|
goto :goto_9
|
|
.end method
|