apkfuckery/com.discord/smali_classes2/k0/g.smali

135 lines
2.9 KiB
Smali
Raw Normal View History

2020-09-02 04:07:20 +00:00
.class public final Lk0/g;
2020-09-22 07:09:10 +00:00
.super Lk0/e$a;
.source "CompletableFutureCallAdapterFactory.java"
2020-05-17 12:40:10 +00:00
2020-09-08 08:16:32 +00:00
# annotations
2020-09-22 07:09:10 +00:00
.annotation system Ldalvik/annotation/MemberClasses;
2020-09-08 08:16:32 +00:00
value = {
2020-09-22 07:09:10 +00:00
Lk0/g$a;,
Lk0/g$c;,
Lk0/g$b;
2020-09-08 08:16:32 +00:00
}
.end annotation
2020-09-22 07:09:10 +00:00
.annotation build Lorg/codehaus/mojo/animal_sniffer/IgnoreJRERequirement;
.end annotation
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
# static fields
.field public static final a:Lk0/e$a;
2020-07-20 19:00:44 +00:00
2020-07-25 00:57:58 +00:00
# direct methods
2020-09-22 07:09:10 +00:00
.method public static constructor <clinit>()V
2020-09-16 23:45:23 +00:00
.locals 1
2020-07-20 19:00:44 +00:00
2020-09-22 07:09:10 +00:00
new-instance v0, Lk0/g;
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
invoke-direct {v0}, Lk0/g;-><init>()V
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
sput-object v0, Lk0/g;->a:Lk0/e$a;
2020-09-08 08:16:32 +00:00
2020-09-18 17:51:47 +00:00
return-void
2020-09-18 16:51:32 +00:00
.end method
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
.method public constructor <init>()V
.locals 0
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
invoke-direct {p0}, Lk0/e$a;-><init>()V
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
return-void
2020-09-22 06:09:03 +00:00
.end method
2020-09-08 08:16:32 +00:00
2020-09-22 06:09:03 +00:00
# virtual methods
2020-09-22 07:09:10 +00:00
.method public a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Lk0/d0;)Lk0/e;
.locals 1
2020-09-22 06:09:03 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-09-22 07:09:10 +00:00
"(",
"Ljava/lang/reflect/Type;",
"[",
"Ljava/lang/annotation/Annotation;",
"Lk0/d0;",
")",
"Lk0/e<",
"**>;"
2020-09-22 06:09:03 +00:00
}
.end annotation
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
invoke-static {p1}, Lk0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
move-result-object p2
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
const-class p3, Ljava/util/concurrent/CompletableFuture;
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
if-eq p2, p3, :cond_0
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
const/4 p1, 0x0
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
return-object p1
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
:cond_0
instance-of p2, p1, Ljava/lang/reflect/ParameterizedType;
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
if-eqz p2, :cond_3
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
check-cast p1, Ljava/lang/reflect/ParameterizedType;
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
const/4 p2, 0x0
2020-09-17 00:45:48 +00:00
2020-09-22 07:09:10 +00:00
invoke-static {p2, p1}, Lk0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
2020-09-17 00:45:48 +00:00
2020-09-22 07:09:10 +00:00
move-result-object p1
2020-09-17 00:45:48 +00:00
2020-09-22 07:09:10 +00:00
invoke-static {p1}, Lk0/h0;->f(Ljava/lang/reflect/Type;)Ljava/lang/Class;
2020-09-17 00:45:48 +00:00
2020-09-22 07:09:10 +00:00
move-result-object p3
2020-09-17 00:45:48 +00:00
2020-09-22 07:09:10 +00:00
const-class v0, Lk0/b0;
2020-09-17 00:45:48 +00:00
2020-09-22 07:09:10 +00:00
if-eq p3, v0, :cond_1
2020-09-17 00:45:48 +00:00
2020-09-22 07:09:10 +00:00
new-instance p2, Lk0/g$a;
2020-09-17 00:45:48 +00:00
2020-09-22 07:09:10 +00:00
invoke-direct {p2, p1}, Lk0/g$a;-><init>(Ljava/lang/reflect/Type;)V
2020-09-18 17:51:47 +00:00
2020-09-22 07:09:10 +00:00
return-object p2
2020-09-18 17:51:47 +00:00
2020-09-22 07:09:10 +00:00
:cond_1
instance-of p3, p1, Ljava/lang/reflect/ParameterizedType;
2020-09-18 17:51:47 +00:00
2020-09-22 07:09:10 +00:00
if-eqz p3, :cond_2
2020-09-18 17:51:47 +00:00
2020-09-22 07:09:10 +00:00
check-cast p1, Ljava/lang/reflect/ParameterizedType;
2020-09-18 17:51:47 +00:00
2020-09-22 07:09:10 +00:00
invoke-static {p2, p1}, Lk0/h0;->e(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
2020-09-18 17:51:47 +00:00
2020-09-22 07:09:10 +00:00
move-result-object p1
2020-09-18 17:51:47 +00:00
2020-09-22 07:09:10 +00:00
new-instance p2, Lk0/g$c;
2020-09-18 17:51:47 +00:00
2020-09-22 07:09:10 +00:00
invoke-direct {p2, p1}, Lk0/g$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
2020-09-08 08:16:32 +00:00
2020-09-22 07:09:10 +00:00
throw p1
2020-05-17 12:40:10 +00:00
.end method