apkfuckery/com.discord/smali_classes2/z/a/u1.smali

134 lines
3.2 KiB
Smali
Raw Normal View History

2020-04-17 19:35:49 +00:00
.class public final Lz/a/u1;
.super Lz/a/v0;
2019-12-06 03:29:40 +00:00
.source "ThreadPoolDispatcher.kt"
# instance fields
.field public final e:Ljava/util/concurrent/atomic/AtomicInteger;
.field public final f:Ljava/util/concurrent/Executor;
.field public final g:I
.field public final h:Ljava/lang/String;
# direct methods
.method public constructor <init>(ILjava/lang/String;)V
.locals 0
if-eqz p2, :cond_0
2020-04-17 19:35:49 +00:00
invoke-direct {p0}, Lz/a/v0;-><init>()V
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iput p1, p0, Lz/a/u1;->g:I
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iput-object p2, p0, Lz/a/u1;->h:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
new-instance p1, Ljava/util/concurrent/atomic/AtomicInteger;
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
2020-04-17 19:35:49 +00:00
iput-object p1, p0, Lz/a/u1;->e:Ljava/util/concurrent/atomic/AtomicInteger;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget p1, p0, Lz/a/u1;->g:I
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
new-instance p2, Lz/a/u1$a;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-direct {p2, p0}, Lz/a/u1$a;-><init>(Lz/a/u1;)V
2019-12-06 03:29:40 +00:00
invoke-static {p1, p2}, Ljava/util/concurrent/Executors;->newScheduledThreadPool(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
move-result-object p1
const-string p2, "Executors.newScheduledTh\u2026.incrementAndGet())\n }"
2020-04-17 19:35:49 +00:00
invoke-static {p1, p2}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iput-object p1, p0, Lz/a/u1;->f:Ljava/util/concurrent/Executor;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object p1, p0, Lz/a/u1;->f:Ljava/util/concurrent/Executor;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-static {p1}, Lz/a/a2/d;->a(Ljava/util/concurrent/Executor;)Z
2019-12-06 03:29:40 +00:00
move-result p1
2020-04-17 19:35:49 +00:00
iput-boolean p1, p0, Lz/a/v0;->d:Z
2019-12-06 03:29:40 +00:00
return-void
:cond_0
const-string p1, "name"
2020-04-17 19:35:49 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
2020-04-17 19:35:49 +00:00
.method public static final synthetic a(Lz/a/u1;)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
.locals 0
2020-04-17 19:35:49 +00:00
iget-object p0, p0, Lz/a/u1;->h:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
return-object p0
.end method
# virtual methods
.method public close()V
.locals 2
2020-04-17 19:35:49 +00:00
iget-object v0, p0, Lz/a/u1;->f:Ljava/util/concurrent/Executor;
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
check-cast v0, Ljava/util/concurrent/ExecutorService;
invoke-interface {v0}, Ljava/util/concurrent/ExecutorService;->shutdown()V
return-void
:cond_0
2020-04-17 19:35:49 +00:00
new-instance v0, Ly/l;
2019-12-06 03:29:40 +00:00
const-string v1, "null cannot be cast to non-null type java.util.concurrent.ExecutorService"
2020-04-17 19:35:49 +00:00
invoke-direct {v0, v1}, Ly/l;-><init>(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "ThreadPoolDispatcher["
2020-04-17 17:35:24 +00:00
invoke-static {v0}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-12-06 03:29:40 +00:00
move-result-object v0
2020-04-17 19:35:49 +00:00
iget v1, p0, Lz/a/u1;->g:I
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lz/a/u1;->h:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x5d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method