apkfuckery/com.discord/smali/q/i.smali

118 lines
2.2 KiB
Smali
Raw Normal View History

2019-12-21 01:41:59 +00:00
.class public Lq/i;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
2020-03-16 23:08:34 +00:00
.source "TaskCompletionSource.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<TResult:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
2019-07-24 11:27:29 +00:00
# instance fields
2020-03-16 23:08:34 +00:00
.field public final a:Lq/f;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-21 01:41:59 +00:00
"Lq/f<",
2020-03-16 23:08:34 +00:00
"TTResult;>;"
2019-07-24 11:27:29 +00:00
}
.end annotation
.end field
2020-03-16 23:08:34 +00:00
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lq/f;
invoke-direct {v0}, Lq/f;-><init>()V
iput-object v0, p0, Lq/i;->a:Lq/f;
return-void
.end method
# virtual methods
.method public a()V
.locals 2
iget-object v0, p0, Lq/i;->a:Lq/f;
invoke-virtual {v0}, Lq/f;->g()Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Cannot cancel a completed task."
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public a(Ljava/lang/Exception;)V
.locals 1
iget-object v0, p0, Lq/i;->a:Lq/f;
invoke-virtual {v0, p1}, Lq/f;->a(Ljava/lang/Exception;)Z
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
.method public a(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TTResult;)V"
}
.end annotation
iget-object v0, p0, Lq/i;->a:Lq/f;
invoke-virtual {v0, p1}, Lq/f;->a(Ljava/lang/Object;)Z
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