DefaultCallAdapterFactory.smali
1.8 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
74
75
.class final Lretrofit2/DefaultCallAdapterFactory;
.super Lretrofit2/CallAdapter$Factory;
.source "DefaultCallAdapterFactory.java"
# static fields
.field static final INSTANCE:Lretrofit2/CallAdapter$Factory;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 27
new-instance v0, Lretrofit2/DefaultCallAdapterFactory;
invoke-direct {v0}, Lretrofit2/DefaultCallAdapterFactory;-><init>()V
sput-object v0, Lretrofit2/DefaultCallAdapterFactory;->INSTANCE:Lretrofit2/CallAdapter$Factory;
return-void
.end method
.method constructor <init>()V
.locals 0
.line 26
invoke-direct {p0}, Lretrofit2/CallAdapter$Factory;-><init>()V
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 31
invoke-static {p1}, Lretrofit2/DefaultCallAdapterFactory;->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 35
:cond_0
invoke-static {p1}, Lretrofit2/Utils;->getCallResponseType(Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;
move-result-object p1
.line 36
new-instance p2, Lretrofit2/DefaultCallAdapterFactory$1;
invoke-direct {p2, p0, p1}, Lretrofit2/DefaultCallAdapterFactory$1;-><init>(Lretrofit2/DefaultCallAdapterFactory;Ljava/lang/reflect/Type;)V
return-object p2
.end method