public class ch.qos.logback.classic.util.LogbackMDCAdapter implements org.slf4j.spi.MDCAdapter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.classic.util.LogbackMDCAdapter
super_class: java.lang.Object
{
final java.lang.ThreadLocal<java.util.Map<java.lang.String, java.lang.String>> copyOnThreadLocal;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0010) ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;
private static final int WRITE_OPERATION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int MAP_COPY_OPERATION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
final java.lang.ThreadLocal<java.lang.Integer> lastOperation;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0010) ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Ljava/lang/Integer;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putfield ch.qos.logback.classic.util.LogbackMDCAdapter.copyOnThreadLocal:Ljava/lang/ThreadLocal;
2: aload 0
new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putfield ch.qos.logback.classic.util.LogbackMDCAdapter.lastOperation:Ljava/lang/ThreadLocal;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
private java.lang.Integer getAndSetLastOperation(int);
descriptor: (I)Ljava/lang/Integer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.lastOperation:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.lang.Integer
astore 2
start local 2 1: aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.lastOperation:Ljava/lang/ThreadLocal;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
0 3 1 op I
1 3 2 lastOp Ljava/lang/Integer;
MethodParameters:
Name Flags
op
private boolean wasLastOpReadOrNull(java.lang.Integer);
descriptor: (Ljava/lang/Integer;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.lang.Integer.intValue:()I
iconst_2
if_icmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
0 2 1 lastOp Ljava/lang/Integer;
MethodParameters:
Name Flags
lastOp
private java.util.Map<java.lang.String, java.lang.String> duplicateAndInsertNewMap(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
invokestatic java.util.Collections.synchronizedMap:(Ljava/util/Map;)Ljava/util/Map;
astore 2
start local 2 1: aload 1
ifnull 8
2: aload 1
dup
astore 3
monitorenter
3: aload 2
aload 1
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
4: aload 3
monitorexit
5: goto 8
StackMap locals: ch.qos.logback.classic.util.LogbackMDCAdapter java.util.Map java.util.Map java.util.Map
StackMap stack: java.lang.Throwable
6: aload 3
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.copyOnThreadLocal:Ljava/lang/ThreadLocal;
aload 2
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
9: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
0 10 1 oldMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 10 2 newMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Exception table:
from to target type
3 5 6 any
6 7 6 any
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
oldMap
public void put(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "key cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.copyOnThreadLocal:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.Map
astore 3
start local 3 3: aload 0
iconst_1
invokevirtual ch.qos.logback.classic.util.LogbackMDCAdapter.getAndSetLastOperation:(I)Ljava/lang/Integer;
astore 4
start local 4 4: aload 0
aload 4
invokevirtual ch.qos.logback.classic.util.LogbackMDCAdapter.wasLastOpReadOrNull:(Ljava/lang/Integer;)Z
ifne 5
aload 3
ifnonnull 8
5: StackMap locals: java.util.Map java.lang.Integer
StackMap stack:
aload 0
aload 3
invokevirtual ch.qos.logback.classic.util.LogbackMDCAdapter.duplicateAndInsertNewMap:(Ljava/util/Map;)Ljava/util/Map;
astore 5
start local 5 6: aload 5
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 7: goto 9
8: StackMap locals:
StackMap stack:
aload 3
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
0 10 1 key Ljava/lang/String;
0 10 2 val Ljava/lang/String;
3 10 3 oldMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
4 10 4 lastOp Ljava/lang/Integer;
6 7 5 newMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
key
val
public void remove(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.copyOnThreadLocal:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.Map
astore 2
start local 2 3: aload 2
ifnonnull 5
4: return
5: StackMap locals: java.util.Map
StackMap stack:
aload 0
iconst_1
invokevirtual ch.qos.logback.classic.util.LogbackMDCAdapter.getAndSetLastOperation:(I)Ljava/lang/Integer;
astore 3
start local 3 6: aload 0
aload 3
invokevirtual ch.qos.logback.classic.util.LogbackMDCAdapter.wasLastOpReadOrNull:(Ljava/lang/Integer;)Z
ifeq 10
7: aload 0
aload 2
invokevirtual ch.qos.logback.classic.util.LogbackMDCAdapter.duplicateAndInsertNewMap:(Ljava/util/Map;)Ljava/util/Map;
astore 4
start local 4 8: aload 4
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 9: goto 11
10: StackMap locals: java.lang.Integer
StackMap stack:
aload 2
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
0 12 1 key Ljava/lang/String;
3 12 2 oldMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
6 12 3 lastOp Ljava/lang/Integer;
8 9 4 newMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
key
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.lastOperation:Ljava/lang/ThreadLocal;
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
1: aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.copyOnThreadLocal:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.remove:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
public java.lang.String get(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.copyOnThreadLocal:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.Map
astore 2
start local 2 1: aload 2
ifnull 3
aload 1
ifnull 3
2: aload 2
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
areturn
3: StackMap locals: java.util.Map
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
0 4 1 key Ljava/lang/String;
1 4 2 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
key
public java.util.Map<java.lang.String, java.lang.String> getPropertyMap();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.lastOperation:Ljava/lang/ThreadLocal;
iconst_2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
1: aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.copyOnThreadLocal:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.Map
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
public java.util.Set<java.lang.String> getKeys();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual ch.qos.logback.classic.util.LogbackMDCAdapter.getPropertyMap:()Ljava/util/Map;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
areturn
3: StackMap locals: java.util.Map
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
1 4 1 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public java.util.Map<java.lang.String, java.lang.String> getCopyOfContextMap();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.copyOnThreadLocal:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.Map
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.util.Map
StackMap stack:
new java.util.HashMap
dup
aload 1
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
1 4 1 hashMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
public void setContextMap(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.lastOperation:Ljava/lang/ThreadLocal;
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
invokestatic java.util.Collections.synchronizedMap:(Ljava/util/Map;)Ljava/util/Map;
astore 2
start local 2 2: aload 2
aload 1
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
3: aload 0
getfield ch.qos.logback.classic.util.LogbackMDCAdapter.copyOnThreadLocal:Ljava/lang/ThreadLocal;
aload 2
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lch/qos/logback/classic/util/LogbackMDCAdapter;
0 5 1 contextMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 5 2 newMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
contextMap
}
SourceFile: "LogbackMDCAdapter.java"