g.smali
2.4 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.class public final Ld/g;
.super Ld/c$a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Ld/g$b;
}
.end annotation
# instance fields
.field public final a:Ljava/util/concurrent/Executor;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/util/concurrent/Executor;)V
.locals 0
.param p1 # Ljava/util/concurrent/Executor;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0}, Ld/c$a;-><init>()V
iput-object p1, p0, Ld/g;->a:Ljava/util/concurrent/Executor;
return-void
.end method
# virtual methods
.method public a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ld/a0;)Ld/c;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/reflect/Type;",
"[",
"Ljava/lang/annotation/Annotation;",
"Ld/a0;",
")",
"Ld/c<",
"**>;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 1
invoke-static {p1}, Ld/e0;->b(Ljava/lang/reflect/Type;)Ljava/lang/Class;
move-result-object p3
.line 2
const-class v0, Ld/b;
const/4 v1, 0x0
if-eq p3, v0, :cond_0
return-object v1
:cond_0
instance-of p3, p1, Ljava/lang/reflect/ParameterizedType;
if-eqz p3, :cond_2
check-cast p1, Ljava/lang/reflect/ParameterizedType;
const/4 p3, 0x0
invoke-static {p3, p1}, Ld/e0;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
move-result-object p1
const-class p3, Ld/c0;
invoke-static {p2, p3}, Ld/e0;->a([Ljava/lang/annotation/Annotation;Ljava/lang/Class;)Z
move-result p2
if-eqz p2, :cond_1
goto :goto_0
:cond_1
iget-object v1, p0, Ld/g;->a:Ljava/util/concurrent/Executor;
:goto_0
new-instance p2, Ld/g$a;
invoke-direct {p2, p0, p1, v1}, Ld/g$a;-><init>(Ld/g;Ljava/lang/reflect/Type;Ljava/util/concurrent/Executor;)V
return-object p2
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "Call return type must be parameterized as Call<Foo> or Call<? extends Foo>"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method