public class ch.qos.logback.core.util.CachingDateFormatter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.core.util.CachingDateFormatter
super_class: java.lang.Object
{
long lastTimestamp;
descriptor: J
flags: (0x0000)
java.lang.String cachedStr;
descriptor: Ljava/lang/String;
flags: (0x0000)
final java.text.SimpleDateFormat sdf;
descriptor: Ljava/text/SimpleDateFormat;
flags: (0x0010) ACC_FINAL
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc -1
putfield ch.qos.logback.core.util.CachingDateFormatter.lastTimestamp:J
2: aload 0
aconst_null
putfield ch.qos.logback.core.util.CachingDateFormatter.cachedStr:Ljava/lang/String;
3: aload 0
new java.text.SimpleDateFormat
dup
aload 1
invokespecial java.text.SimpleDateFormat.<init>:(Ljava/lang/String;)V
putfield ch.qos.logback.core.util.CachingDateFormatter.sdf:Ljava/text/SimpleDateFormat;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lch/qos/logback/core/util/CachingDateFormatter;
0 5 1 pattern Ljava/lang/String;
MethodParameters:
Name Flags
pattern
public final java.lang.String format(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 3
monitorenter
1: lload 1
aload 0
getfield ch.qos.logback.core.util.CachingDateFormatter.lastTimestamp:J
lcmp
ifeq 4
2: aload 0
lload 1
putfield ch.qos.logback.core.util.CachingDateFormatter.lastTimestamp:J
3: aload 0
aload 0
getfield ch.qos.logback.core.util.CachingDateFormatter.sdf:Ljava/text/SimpleDateFormat;
new java.util.Date
dup
lload 1
invokespecial java.util.Date.<init>:(J)V
invokevirtual java.text.SimpleDateFormat.format:(Ljava/util/Date;)Ljava/lang/String;
putfield ch.qos.logback.core.util.CachingDateFormatter.cachedStr:Ljava/lang/String;
4: StackMap locals: ch.qos.logback.core.util.CachingDateFormatter
StackMap stack:
aload 0
getfield ch.qos.logback.core.util.CachingDateFormatter.cachedStr:Ljava/lang/String;
aload 3
monitorexit
5: areturn
6: StackMap locals:
StackMap stack: java.lang.Throwable
aload 3
monitorexit
7: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lch/qos/logback/core/util/CachingDateFormatter;
0 8 1 now J
Exception table:
from to target type
1 5 6 any
6 7 6 any
MethodParameters:
Name Flags
now
public void setTimeZone(java.util.TimeZone);
descriptor: (Ljava/util/TimeZone;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield ch.qos.logback.core.util.CachingDateFormatter.sdf:Ljava/text/SimpleDateFormat;
aload 1
invokevirtual java.text.SimpleDateFormat.setTimeZone:(Ljava/util/TimeZone;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/core/util/CachingDateFormatter;
0 2 1 tz Ljava/util/TimeZone;
MethodParameters:
Name Flags
tz
}
SourceFile: "CachingDateFormatter.java"