apkfuckery/com.discord/smali/j/i.smali

118 lines
2.2 KiB
Smali
Raw Normal View History

2019-12-20 07:00:35 +00:00
.class public Lj/i;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "TaskCompletionSource.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<TResult:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
2019-12-20 07:00:35 +00:00
.field public final a:Lj/f;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-20 07:00:35 +00:00
"Lj/f<",
2019-07-24 11:27:29 +00:00
"TTResult;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-12-20 07:00:35 +00:00
new-instance v0, Lj/f;
2019-07-24 11:27:29 +00:00
2019-12-20 07:00:35 +00:00
invoke-direct {v0}, Lj/f;-><init>()V
2019-07-24 11:27:29 +00:00
2019-12-20 07:00:35 +00:00
iput-object v0, p0, Lj/i;->a:Lj/f;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
# virtual methods
.method public a()V
.locals 2
2019-07-24 11:27:29 +00:00
2019-12-20 07:00:35 +00:00
iget-object v0, p0, Lj/i;->a:Lj/f;
2019-07-24 11:27:29 +00:00
2019-12-20 07:00:35 +00:00
invoke-virtual {v0}, Lj/f;->g()Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result v0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
return-void
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v1, "Cannot cancel a completed task."
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
throw v0
.end method
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.method public a(Ljava/lang/Exception;)V
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-20 07:00:35 +00:00
iget-object v0, p0, Lj/i;->a:Lj/f;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
invoke-virtual {v0, p1}, Lj/f;->a(Ljava/lang/Exception;)Z
2019-07-24 11:27:29 +00:00
move-result p1
if-eqz p1, :cond_0
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Cannot set the error on a completed task."
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2019-12-06 03:29:40 +00:00
.method public a(Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TTResult;)V"
}
.end annotation
2019-12-20 07:00:35 +00:00
iget-object v0, p0, Lj/i;->a:Lj/f;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
invoke-virtual {v0, p1}, Lj/f;->a(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
move-result p1
if-eqz p1, :cond_0
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Cannot set the result of a completed task."
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method