ExecutorCallAdapterFactory.smali
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
.class final Lretrofit2/ExecutorCallAdapterFactory;
.super Lretrofit2/CallAdapter$Factory;
.source "ExecutorCallAdapterFactory.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lretrofit2/ExecutorCallAdapterFactory$ExecutorCallbackCall;
}
.end annotation
# instance fields
.field final callbackExecutor:Ljava/util/concurrent/Executor;
# direct methods
.method constructor <init>(Ljava/util/concurrent/Executor;)V
.locals 0
.line 29
invoke-direct {p0}, Lretrofit2/CallAdapter$Factory;-><init>()V
.line 30
iput-object p1, p0, Lretrofit2/ExecutorCallAdapterFactory;->callbackExecutor:Ljava/util/concurrent/Executor;
return-void
.end method
# virtual methods
.method public get(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Lretrofit2/Retrofit;)Lretrofit2/CallAdapter;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/reflect/Type;",
"[",
"Ljava/lang/annotation/Annotation;",
"Lretrofit2/Retrofit;",
")",
"Lretrofit2/CallAdapter<",
"**>;"
}
.end annotation
.line 35
invoke-static {p1}, Lretrofit2/ExecutorCallAdapterFactory;->getRawType(Ljava/lang/reflect/Type;)Ljava/lang/Class;
move-result-object p2
const-class p3, Lretrofit2/Call;
if-eq p2, p3, :cond_0
const/4 p1, 0x0
return-object p1
.line 38
:cond_0
invoke-static {p1}, Lretrofit2/Utils;->getCallResponseType(Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;
move-result-object p1
.line 39
new-instance p2, Lretrofit2/ExecutorCallAdapterFactory$1;
invoke-direct {p2, p0, p1}, Lretrofit2/ExecutorCallAdapterFactory$1;-><init>(Lretrofit2/ExecutorCallAdapterFactory;Ljava/lang/reflect/Type;)V
return-object p2
.end method