148 lines
3.4 KiB
Smali
148 lines
3.4 KiB
Smali
.class public final Lk0/x$a;
|
|
.super Lk0/x;
|
|
.source "ParameterHandler.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lk0/x;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "a"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lk0/x<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/lang/reflect/Method;
|
|
|
|
.field public final b:I
|
|
|
|
.field public final c:Lk0/h;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lk0/h<",
|
|
"TT;",
|
|
"Lokhttp3/RequestBody;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/reflect/Method;ILk0/h;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/reflect/Method;",
|
|
"I",
|
|
"Lk0/h<",
|
|
"TT;",
|
|
"Lokhttp3/RequestBody;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lk0/x;-><init>()V
|
|
|
|
iput-object p1, p0, Lk0/x$a;->a:Ljava/lang/reflect/Method;
|
|
|
|
iput p2, p0, Lk0/x$a;->b:I
|
|
|
|
iput-object p3, p0, Lk0/x$a;->c:Lk0/h;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lk0/z;Ljava/lang/Object;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lk0/z;",
|
|
"TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lk0/x$a;->c:Lk0/h;
|
|
|
|
invoke-interface {v1, p2}, Lk0/h;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lokhttp3/RequestBody;
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
iput-object v1, p1, Lk0/z;->k:Lokhttp3/RequestBody;
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
iget-object v1, p0, Lk0/x$a;->a:Ljava/lang/reflect/Method;
|
|
|
|
iget v2, p0, Lk0/x$a;->b:I
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "Unable to convert "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p2, " to RequestBody"
|
|
|
|
invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
invoke-static {v1, p1, v2, p2, v0}, Lk0/h0;->m(Ljava/lang/reflect/Method;Ljava/lang/Throwable;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lk0/x$a;->a:Ljava/lang/reflect/Method;
|
|
|
|
iget p2, p0, Lk0/x$a;->b:I
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v1, "Body parameter value must not be null."
|
|
|
|
invoke-static {p1, p2, v1, v0}, Lk0/h0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|