108 lines
2.9 KiB
Smali
108 lines
2.9 KiB
Smali
.class Lretrofit2/DefaultCallAdapterFactory$1;
|
|
.super Ljava/lang/Object;
|
|
.source "DefaultCallAdapterFactory.java"
|
|
|
|
# interfaces
|
|
.implements Lretrofit2/CallAdapter;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lretrofit2/DefaultCallAdapterFactory;->get(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Lretrofit2/Retrofit;)Lretrofit2/CallAdapter;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lretrofit2/CallAdapter<",
|
|
"Ljava/lang/Object;",
|
|
"Lretrofit2/Call<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lretrofit2/DefaultCallAdapterFactory;
|
|
|
|
.field public final synthetic val$executor:Ljava/util/concurrent/Executor;
|
|
|
|
.field public final synthetic val$responseType:Ljava/lang/reflect/Type;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lretrofit2/DefaultCallAdapterFactory;Ljava/lang/reflect/Type;Ljava/util/concurrent/Executor;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lretrofit2/DefaultCallAdapterFactory$1;->this$0:Lretrofit2/DefaultCallAdapterFactory;
|
|
|
|
iput-object p2, p0, Lretrofit2/DefaultCallAdapterFactory$1;->val$responseType:Ljava/lang/reflect/Type;
|
|
|
|
iput-object p3, p0, Lretrofit2/DefaultCallAdapterFactory$1;->val$executor:Ljava/util/concurrent/Executor;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic adapt(Lretrofit2/Call;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lretrofit2/DefaultCallAdapterFactory$1;->adapt(Lretrofit2/Call;)Lretrofit2/Call;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public adapt(Lretrofit2/Call;)Lretrofit2/Call;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lretrofit2/Call<",
|
|
"Ljava/lang/Object;",
|
|
">;)",
|
|
"Lretrofit2/Call<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lretrofit2/DefaultCallAdapterFactory$1;->val$executor:Ljava/util/concurrent/Executor;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
new-instance v1, Lretrofit2/DefaultCallAdapterFactory$ExecutorCallbackCall;
|
|
|
|
invoke-direct {v1, v0, p1}, Lretrofit2/DefaultCallAdapterFactory$ExecutorCallbackCall;-><init>(Ljava/util/concurrent/Executor;Lretrofit2/Call;)V
|
|
|
|
move-object p1, v1
|
|
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public responseType()Ljava/lang/reflect/Type;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lretrofit2/DefaultCallAdapterFactory$1;->val$responseType:Ljava/lang/reflect/Type;
|
|
|
|
return-object v0
|
|
.end method
|