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

134 lines
3.2 KiB
Smali
Raw Normal View History

2019-12-12 08:58:10 +00:00
.class public final Ln/a/u1;
.super Ln/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
2019-12-12 08:58:10 +00:00
invoke-direct {p0}, Ln/a/v0;-><init>()V
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iput p1, p0, Ln/a/u1;->g:I
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iput-object p2, p0, Ln/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
2019-12-12 08:58:10 +00:00
iput-object p1, p0, Ln/a/u1;->e:Ljava/util/concurrent/atomic/AtomicInteger;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iget p1, p0, Ln/a/u1;->g:I
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
new-instance p2, Ln/a/u1$a;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
invoke-direct {p2, p0}, Ln/a/u1$a;-><init>(Ln/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 }"
2019-12-12 08:58:10 +00:00
invoke-static {p1, p2}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iput-object p1, p0, Ln/a/u1;->f:Ljava/util/concurrent/Executor;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iget-object p1, p0, Ln/a/u1;->f:Ljava/util/concurrent/Executor;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {p1}, Ln/a/a2/d;->a(Ljava/util/concurrent/Executor;)Z
2019-12-06 03:29:40 +00:00
move-result p1
2019-12-12 08:58:10 +00:00
iput-boolean p1, p0, Ln/a/v0;->d:Z
2019-12-06 03:29:40 +00:00
return-void
:cond_0
const-string p1, "name"
2019-12-12 08:58:10 +00:00
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
2019-12-12 08:58:10 +00:00
.method public static final synthetic a(Ln/a/u1;)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
.locals 0
2019-12-12 08:58:10 +00:00
iget-object p0, p0, Ln/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
2019-12-12 08:58:10 +00:00
iget-object v0, p0, Ln/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
2019-12-12 08:58:10 +00:00
new-instance v0, Lm/l;
2019-12-06 03:29:40 +00:00
const-string v1, "null cannot be cast to non-null type java.util.concurrent.ExecutorService"
2019-12-12 08:58:10 +00:00
invoke-direct {v0, v1}, Lm/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["
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
2019-12-12 08:58:10 +00:00
iget v1, p0, Ln/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;
2019-12-12 08:58:10 +00:00
iget-object v1, p0, Ln/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