apkfuckery/com.discord/smali_classes2/g0/g$a$a.smali

119 lines
2.8 KiB
Smali
Raw Normal View History

2020-11-14 03:19:56 +00:00
.class public Lg0/g$a$a;
2020-11-12 02:11:44 +00:00
.super Ljava/lang/Object;
.source "CompletableFutureCallAdapterFactory.java"
# interfaces
2020-11-14 03:19:56 +00:00
.implements Lg0/f;
2020-11-12 02:11:44 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-11-14 03:19:56 +00:00
value = Lg0/g$a;
2020-11-12 02:11:44 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
2020-11-14 03:19:56 +00:00
"Lg0/f<",
2020-11-12 02:11:44 +00:00
"TR;>;"
}
.end annotation
.annotation build Lorg/codehaus/mojo/animal_sniffer/IgnoreJRERequirement;
.end annotation
# instance fields
.field public final a:Ljava/util/concurrent/CompletableFuture;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/CompletableFuture<",
"TR;>;"
}
.end annotation
.end field
# direct methods
2020-11-14 03:19:56 +00:00
.method public constructor <init>(Lg0/g$a;Ljava/util/concurrent/CompletableFuture;)V
2020-11-12 02:11:44 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/CompletableFuture<",
"TR;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-11-14 03:19:56 +00:00
iput-object p2, p0, Lg0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
2020-11-12 02:11:44 +00:00
return-void
.end method
# virtual methods
2020-11-14 03:19:56 +00:00
.method public a(Lg0/d;Ljava/lang/Throwable;)V
2020-11-12 02:11:44 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-11-14 03:19:56 +00:00
"Lg0/d<",
2020-11-12 02:11:44 +00:00
"TR;>;",
"Ljava/lang/Throwable;",
")V"
}
.end annotation
2020-11-14 03:19:56 +00:00
iget-object p1, p0, Lg0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
2020-11-12 02:11:44 +00:00
invoke-virtual {p1, p2}, Ljava/util/concurrent/CompletableFuture;->completeExceptionally(Ljava/lang/Throwable;)Z
return-void
.end method
2020-11-14 03:19:56 +00:00
.method public b(Lg0/d;Lg0/z;)V
2020-11-12 02:11:44 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-11-14 03:19:56 +00:00
"Lg0/d<",
2020-11-12 02:11:44 +00:00
"TR;>;",
2020-11-14 03:19:56 +00:00
"Lg0/z<",
2020-11-12 02:11:44 +00:00
"TR;>;)V"
}
.end annotation
2020-11-14 03:19:56 +00:00
invoke-virtual {p2}, Lg0/z;->a()Z
2020-11-12 02:11:44 +00:00
move-result p1
if-eqz p1, :cond_0
2020-11-14 03:19:56 +00:00
iget-object p1, p0, Lg0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object p2, p2, Lg0/z;->b:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
invoke-virtual {p1, p2}, Ljava/util/concurrent/CompletableFuture;->complete(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
2020-11-14 03:19:56 +00:00
iget-object p1, p0, Lg0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
2020-11-12 02:11:44 +00:00
new-instance v0, Lretrofit2/HttpException;
2020-11-14 03:19:56 +00:00
invoke-direct {v0, p2}, Lretrofit2/HttpException;-><init>(Lg0/z;)V
2020-11-12 02:11:44 +00:00
invoke-virtual {p1, v0}, Ljava/util/concurrent/CompletableFuture;->completeExceptionally(Ljava/lang/Throwable;)Z
:goto_0
return-void
.end method