class com.google.common.util.concurrent.Callables$4 implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.google.common.util.concurrent.Callables$4
super_class: java.lang.Object
{
private final com.google.common.base.Supplier val$nameSupplier;
descriptor: Lcom/google/common/base/Supplier;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final java.lang.Runnable val$task;
descriptor: Ljava/lang/Runnable;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(com.google.common.base.Supplier, java.lang.Runnable);
descriptor: (Lcom/google/common/base/Supplier;Ljava/lang/Runnable;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 // com.google.common.util.concurrent.Callables$4 this
0: .line 112
aload 0 /* this */
aload 1
putfield com.google.common.util.concurrent.Callables$4.val$nameSupplier:Lcom/google/common/base/Supplier;
aload 0 /* this */
aload 2
putfield com.google.common.util.concurrent.Callables$4.val$task:Ljava/lang/Runnable;
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // com.google.common.util.concurrent.Callables$4 this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/util/concurrent/Callables$4;
MethodParameters:
Name Flags
val$nameSupplier final
val$task final
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 // com.google.common.util.concurrent.Callables$4 this
0: .line 115
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
astore 1 /* currentThread */
start local 1 // java.lang.Thread currentThread
1: .line 116
aload 1 /* currentThread */
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
astore 2 /* oldName */
start local 2 // java.lang.String oldName
2: .line 117
aload 0 /* this */
getfield com.google.common.util.concurrent.Callables$4.val$nameSupplier:Lcom/google/common/base/Supplier;
invokeinterface com.google.common.base.Supplier.get:()Ljava/lang/Object;
checkcast java.lang.String
aload 1 /* currentThread */
invokestatic com.google.common.util.concurrent.Callables.trySetName:(Ljava/lang/String;Ljava/lang/Thread;)Z
istore 3 /* restoreName */
start local 3 // boolean restoreName
3: .line 119
aload 0 /* this */
getfield com.google.common.util.concurrent.Callables$4.val$task:Ljava/lang/Runnable;
invokeinterface java.lang.Runnable.run:()V
4: .line 120
goto 9
StackMap locals: com.google.common.util.concurrent.Callables$4 java.lang.Thread java.lang.String int
StackMap stack: java.lang.Throwable
5: astore 4
6: .line 121
iload 3 /* restoreName */
ifeq 8
7: .line 122
aload 2 /* oldName */
aload 1 /* currentThread */
invokestatic com.google.common.util.concurrent.Callables.trySetName:(Ljava/lang/String;Ljava/lang/Thread;)Z
pop
8: .line 124
StackMap locals: java.lang.Throwable
StackMap stack:
aload 4
athrow
9: .line 121
StackMap locals:
StackMap stack:
iload 3 /* restoreName */
ifeq 11
10: .line 122
aload 2 /* oldName */
aload 1 /* currentThread */
invokestatic com.google.common.util.concurrent.Callables.trySetName:(Ljava/lang/String;Ljava/lang/Thread;)Z
pop
11: .line 125
StackMap locals:
StackMap stack:
return
end local 3 // boolean restoreName
end local 2 // java.lang.String oldName
end local 1 // java.lang.Thread currentThread
end local 0 // com.google.common.util.concurrent.Callables$4 this
LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/google/common/util/concurrent/Callables$4;
1 12 1 currentThread Ljava/lang/Thread;
2 12 2 oldName Ljava/lang/String;
3 12 3 restoreName Z
Exception table:
from to target type
3 5 5 any
}
SourceFile: "Callables.java"
EnclosingMethod: com.google.common.util.concurrent.Callables.threadRenaming:(Ljava/lang/Runnable;Lcom/google/common/base/Supplier;)Ljava/lang/Runnable;
NestHost: com.google.common.util.concurrent.Callables
InnerClasses:
com.google.common.util.concurrent.Callables$4