apkfuckery/com.discord/smali/a/e.smali

211 lines
3.9 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final La/e;
.super Ljava/lang/Object;
.source "CancellationTokenSource.java"
# interfaces
.implements Ljava/io/Closeable;
# instance fields
2019-10-09 23:16:36 +00:00
.field private A:Ljava/util/concurrent/ScheduledFuture;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-10-09 23:16:36 +00:00
"Ljava/util/concurrent/ScheduledFuture<",
"*>;"
2019-07-24 11:27:29 +00:00
}
.end annotation
.end field
2019-10-09 23:16:36 +00:00
.field private B:Z
.field final lock:Ljava/lang/Object;
.field private w:Z
.field final z:Ljava/util/List;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-10-09 23:16:36 +00:00
"Ljava/util/List<",
"La/d;",
">;"
2019-07-24 11:27:29 +00:00
}
.end annotation
.end field
# virtual methods
.method public final close()V
.locals 4
iget-object v0, p0, La/e;->lock:Ljava/lang/Object;
monitor-enter v0
:try_start_0
2019-10-09 23:16:36 +00:00
iget-boolean v1, p0, La/e;->w:Z
2019-07-24 11:27:29 +00:00
if-eqz v1, :cond_0
monitor-exit v0
return-void
:cond_0
2019-10-09 23:16:36 +00:00
iget-object v1, p0, La/e;->A:Ljava/util/concurrent/ScheduledFuture;
2019-07-24 11:27:29 +00:00
const/4 v2, 0x1
if-eqz v1, :cond_1
2019-10-09 23:16:36 +00:00
iget-object v1, p0, La/e;->A:Ljava/util/concurrent/ScheduledFuture;
2019-07-24 11:27:29 +00:00
invoke-interface {v1, v2}, Ljava/util/concurrent/ScheduledFuture;->cancel(Z)Z
const/4 v1, 0x0
2019-10-09 23:16:36 +00:00
iput-object v1, p0, La/e;->A:Ljava/util/concurrent/ScheduledFuture;
2019-07-24 11:27:29 +00:00
:cond_1
2019-10-09 23:16:36 +00:00
iget-object v1, p0, La/e;->z:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_2
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, La/d;
invoke-virtual {v3}, La/d;->close()V
goto :goto_0
:cond_2
2019-10-09 23:16:36 +00:00
iget-object v1, p0, La/e;->z:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-interface {v1}, Ljava/util/List;->clear()V
2019-10-09 23:16:36 +00:00
iput-boolean v2, p0, La/e;->w:Z
2019-07-24 11:27:29 +00:00
monitor-exit v0
return-void
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
2019-10-09 23:16:36 +00:00
.method public final h()Z
2019-07-24 11:27:29 +00:00
.locals 2
iget-object v0, p0, La/e;->lock:Ljava/lang/Object;
monitor-enter v0
:try_start_0
2019-10-09 23:16:36 +00:00
invoke-virtual {p0}, La/e;->i()V
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
iget-boolean v1, p0, La/e;->B:Z
2019-07-24 11:27:29 +00:00
monitor-exit v0
return v1
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
2019-10-09 23:16:36 +00:00
.method final i()V
2019-10-07 23:23:22 +00:00
.locals 2
2019-10-09 23:16:36 +00:00
iget-boolean v0, p0, La/e;->w:Z
2019-10-07 23:23:22 +00:00
if-nez v0, :cond_0
return-void
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Object already closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
2019-07-24 11:27:29 +00:00
.method public final toString()Ljava/lang/String;
.locals 4
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
const/4 v1, 0x3
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v2
const/4 v3, 0x0
aput-object v2, v1, v3
invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v2
const/4 v3, 0x1
aput-object v2, v1, v3
2019-10-09 23:16:36 +00:00
invoke-virtual {p0}, La/e;->h()Z
2019-07-24 11:27:29 +00:00
move-result v2
invoke-static {v2}, Ljava/lang/Boolean;->toString(Z)Ljava/lang/String;
move-result-object v2
const/4 v3, 0x2
aput-object v2, v1, v3
const-string v2, "%s@%s[cancellationRequested=%s]"
invoke-static {v0, v2, v1}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method