class ch.qos.logback.core.util.ExecutorServiceUtil$1 implements java.util.concurrent.ThreadFactory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: ch.qos.logback.core.util.ExecutorServiceUtil$1
super_class: java.lang.Object
{
private final java.util.concurrent.ThreadFactory defaultFactory;
descriptor: Ljava/util/concurrent/ThreadFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger threadNumber;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 // ch.qos.logback.core.util.ExecutorServiceUtil$1 this
0: .line 36
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 38
aload 0 /* this */
invokestatic java.util.concurrent.Executors.defaultThreadFactory:()Ljava/util/concurrent/ThreadFactory;
putfield ch.qos.logback.core.util.ExecutorServiceUtil$1.defaultFactory:Ljava/util/concurrent/ThreadFactory;
2: .line 39
aload 0 /* this */
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_1
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield ch.qos.logback.core.util.ExecutorServiceUtil$1.threadNumber:Ljava/util/concurrent/atomic/AtomicInteger;
3: .line 36
return
end local 0 // ch.qos.logback.core.util.ExecutorServiceUtil$1 this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lch/qos/logback/core/util/ExecutorServiceUtil$1;
public java.lang.Thread newThread(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljava/lang/Thread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 // ch.qos.logback.core.util.ExecutorServiceUtil$1 this
start local 1 // java.lang.Runnable r
0: .line 42
aload 0 /* this */
getfield ch.qos.logback.core.util.ExecutorServiceUtil$1.defaultFactory:Ljava/util/concurrent/ThreadFactory;
aload 1 /* r */
invokeinterface java.util.concurrent.ThreadFactory.newThread:(Ljava/lang/Runnable;)Ljava/lang/Thread;
astore 2 /* thread */
start local 2 // java.lang.Thread thread
1: .line 43
aload 2 /* thread */
invokevirtual java.lang.Thread.isDaemon:()Z
ifne 3
2: .line 44
aload 2 /* thread */
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
3: .line 46
StackMap locals: java.lang.Thread
StackMap stack:
aload 2 /* thread */
new java.lang.StringBuilder
dup
ldc "logback-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0 /* this */
getfield ch.qos.logback.core.util.ExecutorServiceUtil$1.threadNumber:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.Thread.setName:(Ljava/lang/String;)V
4: .line 47
aload 2 /* thread */
areturn
end local 2 // java.lang.Thread thread
end local 1 // java.lang.Runnable r
end local 0 // ch.qos.logback.core.util.ExecutorServiceUtil$1 this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lch/qos/logback/core/util/ExecutorServiceUtil$1;
0 5 1 r Ljava/lang/Runnable;
1 5 2 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
r
}
SourceFile: "ExecutorServiceUtil.java"
EnclosingMethod: ch.qos.logback.core.util.ExecutorServiceUtil
NestHost: ch.qos.logback.core.util.ExecutorServiceUtil
InnerClasses:
ch.qos.logback.core.util.ExecutorServiceUtil$1