118 lines
2.8 KiB
Smali
118 lines
2.8 KiB
Smali
.class public Lg0/g$a$a;
|
|
.super Ljava/lang/Object;
|
|
.source "CompletableFutureCallAdapterFactory.java"
|
|
|
|
# interfaces
|
|
.implements Lg0/f;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lg0/g$a;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = "a"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lg0/f<",
|
|
"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
|
|
.method public constructor <init>(Lg0/g$a;Ljava/util/concurrent/CompletableFuture;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/concurrent/CompletableFuture<",
|
|
"TR;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p2, p0, Lg0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lg0/d;Ljava/lang/Throwable;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lg0/d<",
|
|
"TR;>;",
|
|
"Ljava/lang/Throwable;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p1, p0, Lg0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
|
|
|
|
invoke-virtual {p1, p2}, Ljava/util/concurrent/CompletableFuture;->completeExceptionally(Ljava/lang/Throwable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Lg0/d;Lg0/b0;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lg0/d<",
|
|
"TR;>;",
|
|
"Lg0/b0<",
|
|
"TR;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p2}, Lg0/b0;->a()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Lg0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
|
|
|
|
iget-object p2, p2, Lg0/b0;->b:Ljava/lang/Object;
|
|
|
|
invoke-virtual {p1, p2}, Ljava/util/concurrent/CompletableFuture;->complete(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lg0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
|
|
|
|
new-instance v0, Lretrofit2/HttpException;
|
|
|
|
invoke-direct {v0, p2}, Lretrofit2/HttpException;-><init>(Lg0/b0;)V
|
|
|
|
invoke-virtual {p1, v0}, Ljava/util/concurrent/CompletableFuture;->completeExceptionally(Ljava/lang/Throwable;)Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|