class com.google.common.util.concurrent.Callables$3 implements java.util.concurrent.Callable<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.google.common.util.concurrent.Callables$3
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.util.concurrent.Callable val$callable;
descriptor: Ljava/util/concurrent/Callable;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(com.google.common.base.Supplier, java.util.concurrent.Callable);
descriptor: (Lcom/google/common/base/Supplier;Ljava/util/concurrent/Callable;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 // com.google.common.util.concurrent.Callables$3 this
0: .line 82
aload 0 /* this */
aload 1
putfield com.google.common.util.concurrent.Callables$3.val$nameSupplier:Lcom/google/common/base/Supplier;
aload 0 /* this */
aload 2
putfield com.google.common.util.concurrent.Callables$3.val$callable:Ljava/util/concurrent/Callable;
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // com.google.common.util.concurrent.Callables$3 this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/util/concurrent/Callables$3;
MethodParameters:
Name Flags
val$nameSupplier final
val$callable final
public T call();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=1
start local 0 // com.google.common.util.concurrent.Callables$3 this
0: .line 85
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
astore 1 /* currentThread */
start local 1 // java.lang.Thread currentThread
1: .line 86
aload 1 /* currentThread */
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
astore 2 /* oldName */
start local 2 // java.lang.String oldName
2: .line 87
aload 0 /* this */
getfield com.google.common.util.concurrent.Callables$3.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 89
aload 0 /* this */
getfield com.google.common.util.concurrent.Callables$3.val$callable:Ljava/util/concurrent/Callable;
invokeinterface java.util.concurrent.Callable.call:()Ljava/lang/Object;
astore 5
4: .line 91
iload 3 /* restoreName */
ifeq 6
5: .line 92
aload 2 /* oldName */
aload 1 /* currentThread */
invokestatic com.google.common.util.concurrent.Callables.trySetName:(Ljava/lang/String;Ljava/lang/Thread;)Z
pop
6: .line 89
StackMap locals: com.google.common.util.concurrent.Callables$3 java.lang.Thread java.lang.String int top java.lang.Object
StackMap stack:
aload 5
areturn
7: .line 90
StackMap locals: com.google.common.util.concurrent.Callables$3 java.lang.Thread java.lang.String int
StackMap stack: java.lang.Throwable
astore 4
8: .line 91
iload 3 /* restoreName */
ifeq 10
9: .line 92
aload 2 /* oldName */
aload 1 /* currentThread */
invokestatic com.google.common.util.concurrent.Callables.trySetName:(Ljava/lang/String;Ljava/lang/Thread;)Z
pop
10: .line 94
StackMap locals: java.lang.Throwable
StackMap stack:
aload 4
athrow
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$3 this
LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/google/common/util/concurrent/Callables$3;
1 11 1 currentThread Ljava/lang/Thread;
2 11 2 oldName Ljava/lang/String;
3 11 3 restoreName Z
Exception table:
from to target type
3 4 7 any
Exceptions:
throws java.lang.Exception
Signature: ()TT;
}
Signature: Ljava/lang/Object;Ljava/util/concurrent/Callable<TT;>;
SourceFile: "Callables.java"
EnclosingMethod: com.google.common.util.concurrent.Callables.threadRenaming:(Ljava/util/concurrent/Callable;Lcom/google/common/base/Supplier;)Ljava/util/concurrent/Callable;
NestHost: com.google.common.util.concurrent.Callables
InnerClasses:
com.google.common.util.concurrent.Callables$3