220 lines
5.5 KiB
Smali
220 lines
5.5 KiB
Smali
|
.class public final Lh0/n;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "KotlinExtensions.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lh0/f;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/lang/Object;",
|
||
|
"Lh0/f<",
|
||
|
"TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final synthetic a:La0/a/f;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(La0/a/f;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lh0/n;->a:La0/a/f;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public a(Lh0/d;Ljava/lang/Throwable;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lh0/d<",
|
||
|
"TT;>;",
|
||
|
"Ljava/lang/Throwable;",
|
||
|
")V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "call"
|
||
|
|
||
|
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string p1, "t"
|
||
|
|
||
|
invoke-static {p2, p1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iget-object p1, p0, Lh0/n;->a:La0/a/f;
|
||
|
|
||
|
invoke-static {p2}, Lf/h/a/f/f/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
invoke-interface {p1, p2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public b(Lh0/d;Lh0/b0;)V
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lh0/d<",
|
||
|
"TT;>;",
|
||
|
"Lh0/b0<",
|
||
|
"TT;>;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "call"
|
||
|
|
||
|
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v0, "response"
|
||
|
|
||
|
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {p2}, Lh0/b0;->a()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
iget-object p2, p2, Lh0/b0;->b:Ljava/lang/Object;
|
||
|
|
||
|
if-nez p2, :cond_2
|
||
|
|
||
|
invoke-interface {p1}, Lh0/d;->g()Ld0/b0;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-class p2, Lh0/k;
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
const-string v1, "type"
|
||
|
|
||
|
invoke-static {p2, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iget-object p1, p1, Ld0/b0;->f:Ljava/util/Map;
|
||
|
|
||
|
invoke-interface {p1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p2, p1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
const-string p2, "call.request().tag(Invocation::class.java)!!"
|
||
|
|
||
|
invoke-static {p1, p2}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p1, Lh0/k;
|
||
|
|
||
|
iget-object p1, p1, Lh0/k;->a:Ljava/lang/reflect/Method;
|
||
|
|
||
|
new-instance p2, Lkotlin/KotlinNullPointerException;
|
||
|
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v1, "Response from "
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, "method"
|
||
|
|
||
|
invoke-static {p1, v1}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/reflect/Method;->getDeclaringClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const-string v2, "method.declaringClass"
|
||
|
|
||
|
invoke-static {v1, v2}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const/16 v1, 0x2e
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string p1, " was null but response body type was declared as non-null"
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p2, p1}, Lkotlin/KotlinNullPointerException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
iget-object p1, p0, Lh0/n;->a:La0/a/f;
|
||
|
|
||
|
invoke-static {p2}, Lf/h/a/f/f/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
invoke-interface {p1, p2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-static {}, Lz/n/c/j;->throwNpe()V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_1
|
||
|
throw v0
|
||
|
|
||
|
:cond_2
|
||
|
iget-object p1, p0, Lh0/n;->a:La0/a/f;
|
||
|
|
||
|
invoke-interface {p1, p2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_3
|
||
|
iget-object p1, p0, Lh0/n;->a:La0/a/f;
|
||
|
|
||
|
new-instance v0, Lretrofit2/HttpException;
|
||
|
|
||
|
invoke-direct {v0, p2}, Lretrofit2/HttpException;-><init>(Lh0/b0;)V
|
||
|
|
||
|
invoke-static {v0}, Lf/h/a/f/f/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
invoke-interface {p1, p2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
|
||
|
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|