e.smali
3.0 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
.class public final Ld/e;
.super Ld/c$a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Ld/e$a;,
Ld/e$c;,
Ld/e$b;
}
.end annotation
.annotation build Lorg/codehaus/mojo/animal_sniffer/IgnoreJRERequirement;
.end annotation
# static fields
.field public static final a:Ld/c$a;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Ld/e;
invoke-direct {v0}, Ld/e;-><init>()V
sput-object v0, Ld/e;->a:Ld/c$a;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ld/c$a;-><init>()V
return-void
.end method
# virtual methods
.method public a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ld/a0;)Ld/c;
.locals 1
.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 p2
.line 2
const-class p3, Ljava/util/concurrent/CompletableFuture;
if-eq p2, p3, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
instance-of p2, p1, Ljava/lang/reflect/ParameterizedType;
if-eqz p2, :cond_3
check-cast p1, Ljava/lang/reflect/ParameterizedType;
const/4 p2, 0x0
.line 3
invoke-static {p2, p1}, Ld/e0;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
move-result-object p1
.line 4
invoke-static {p1}, Ld/e0;->b(Ljava/lang/reflect/Type;)Ljava/lang/Class;
move-result-object p3
.line 5
const-class v0, Ld/y;
if-eq p3, v0, :cond_1
new-instance p2, Ld/e$a;
invoke-direct {p2, p1}, Ld/e$a;-><init>(Ljava/lang/reflect/Type;)V
return-object p2
:cond_1
instance-of p3, p1, Ljava/lang/reflect/ParameterizedType;
if-eqz p3, :cond_2
check-cast p1, Ljava/lang/reflect/ParameterizedType;
.line 6
invoke-static {p2, p1}, Ld/e0;->a(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
move-result-object p1
.line 7
new-instance p2, Ld/e$c;
invoke-direct {p2, p1}, Ld/e$c;-><init>(Ljava/lang/reflect/Type;)V
return-object p2
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Response must be parameterized as Response<Foo> or Response<? extends Foo>"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "CompletableFuture return type must be parameterized as CompletableFuture<Foo> or CompletableFuture<? extends Foo>"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method