public final class org.springframework.context.i18n.LocaleContextHolder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.springframework.context.i18n.LocaleContextHolder
super_class: java.lang.Object
{
private static final java.lang.ThreadLocal<org.springframework.context.i18n.LocaleContext> localeContextHolder;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Lorg/springframework/context/i18n/LocaleContext;>;
private static final java.lang.ThreadLocal<org.springframework.context.i18n.LocaleContext> inheritableLocaleContextHolder;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Lorg/springframework/context/i18n/LocaleContext;>;
private static java.util.Locale defaultLocale;
descriptor: Ljava/util/Locale;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private static java.util.TimeZone defaultTimeZone;
descriptor: Ljava/util/TimeZone;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.springframework.core.NamedThreadLocal
dup
ldc "LocaleContext"
invokespecial org.springframework.core.NamedThreadLocal.<init>:(Ljava/lang/String;)V
1: putstatic org.springframework.context.i18n.LocaleContextHolder.localeContextHolder:Ljava/lang/ThreadLocal;
2: new org.springframework.core.NamedInheritableThreadLocal
dup
ldc "LocaleContext"
invokespecial org.springframework.core.NamedInheritableThreadLocal.<init>:(Ljava/lang/String;)V
3: putstatic org.springframework.context.i18n.LocaleContextHolder.inheritableLocaleContextHolder:Ljava/lang/ThreadLocal;
4: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/context/i18n/LocaleContextHolder;
public static void resetLocaleContext();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.springframework.context.i18n.LocaleContextHolder.localeContextHolder:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.remove:()V
1: getstatic org.springframework.context.i18n.LocaleContextHolder.inheritableLocaleContextHolder:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.remove:()V
2: return
LocalVariableTable:
Start End Slot Name Signature
public static void setLocaleContext(org.springframework.context.i18n.LocaleContext);
descriptor: (Lorg/springframework/context/i18n/LocaleContext;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokestatic org.springframework.context.i18n.LocaleContextHolder.setLocaleContext:(Lorg/springframework/context/i18n/LocaleContext;Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 localeContext Lorg/springframework/context/i18n/LocaleContext;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
localeContext
public static void setLocaleContext(org.springframework.context.i18n.LocaleContext, boolean);
descriptor: (Lorg/springframework/context/i18n/LocaleContext;Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 3
1: invokestatic org.springframework.context.i18n.LocaleContextHolder.resetLocaleContext:()V
2: goto 9
3: StackMap locals:
StackMap stack:
iload 1
ifeq 7
4: getstatic org.springframework.context.i18n.LocaleContextHolder.inheritableLocaleContextHolder:Ljava/lang/ThreadLocal;
aload 0
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
5: getstatic org.springframework.context.i18n.LocaleContextHolder.localeContextHolder:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.remove:()V
6: goto 9
7: StackMap locals:
StackMap stack:
getstatic org.springframework.context.i18n.LocaleContextHolder.localeContextHolder:Ljava/lang/ThreadLocal;
aload 0
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
8: getstatic org.springframework.context.i18n.LocaleContextHolder.inheritableLocaleContextHolder:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.remove:()V
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 localeContext Lorg/springframework/context/i18n/LocaleContext;
0 10 1 inheritable Z
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
localeContext
inheritable
public static org.springframework.context.i18n.LocaleContext getLocaleContext();
descriptor: ()Lorg/springframework/context/i18n/LocaleContext;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: getstatic org.springframework.context.i18n.LocaleContextHolder.localeContextHolder:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast org.springframework.context.i18n.LocaleContext
astore 0
start local 0 1: aload 0
ifnonnull 3
2: getstatic org.springframework.context.i18n.LocaleContextHolder.inheritableLocaleContextHolder:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast org.springframework.context.i18n.LocaleContext
astore 0
3: StackMap locals: org.springframework.context.i18n.LocaleContext
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 localeContext Lorg/springframework/context/i18n/LocaleContext;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public static void setLocale(java.util.Locale);
descriptor: (Ljava/util/Locale;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokestatic org.springframework.context.i18n.LocaleContextHolder.setLocale:(Ljava/util/Locale;Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 locale Ljava/util/Locale;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
locale
public static void setLocale(java.util.Locale, boolean);
descriptor: (Ljava/util/Locale;Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: invokestatic org.springframework.context.i18n.LocaleContextHolder.getLocaleContext:()Lorg/springframework/context/i18n/LocaleContext;
astore 2
start local 2 1: aload 2
instanceof org.springframework.context.i18n.TimeZoneAwareLocaleContext
ifeq 3
2: aload 2
checkcast org.springframework.context.i18n.TimeZoneAwareLocaleContext
invokeinterface org.springframework.context.i18n.TimeZoneAwareLocaleContext.getTimeZone:()Ljava/util/TimeZone;
goto 4
StackMap locals: org.springframework.context.i18n.LocaleContext
StackMap stack:
3: aconst_null
4: StackMap locals:
StackMap stack: java.util.TimeZone
astore 3
start local 3 5: aload 3
ifnull 8
6: new org.springframework.context.i18n.SimpleTimeZoneAwareLocaleContext
dup
aload 0
aload 3
invokespecial org.springframework.context.i18n.SimpleTimeZoneAwareLocaleContext.<init>:(Ljava/util/Locale;Ljava/util/TimeZone;)V
astore 2
7: goto 12
8: StackMap locals: java.util.TimeZone
StackMap stack:
aload 0
ifnull 11
9: new org.springframework.context.i18n.SimpleLocaleContext
dup
aload 0
invokespecial org.springframework.context.i18n.SimpleLocaleContext.<init>:(Ljava/util/Locale;)V
astore 2
10: goto 12
11: StackMap locals:
StackMap stack:
aconst_null
astore 2
12: StackMap locals:
StackMap stack:
aload 2
iload 1
invokestatic org.springframework.context.i18n.LocaleContextHolder.setLocaleContext:(Lorg/springframework/context/i18n/LocaleContext;Z)V
13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 locale Ljava/util/Locale;
0 14 1 inheritable Z
1 14 2 localeContext Lorg/springframework/context/i18n/LocaleContext;
5 14 3 timeZone Ljava/util/TimeZone;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
locale
inheritable
public static void setDefaultLocale(java.util.Locale);
descriptor: (Ljava/util/Locale;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
putstatic org.springframework.context.i18n.LocaleContextHolder.defaultLocale:Ljava/util/Locale;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 locale Ljava/util/Locale;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
locale
public static java.util.Locale getLocale();
descriptor: ()Ljava/util/Locale;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.springframework.context.i18n.LocaleContextHolder.getLocaleContext:()Lorg/springframework/context/i18n/LocaleContext;
invokestatic org.springframework.context.i18n.LocaleContextHolder.getLocale:(Lorg/springframework/context/i18n/LocaleContext;)Ljava/util/Locale;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.util.Locale getLocale(org.springframework.context.i18n.LocaleContext);
descriptor: (Lorg/springframework/context/i18n/LocaleContext;)Ljava/util/Locale;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
ifnull 4
1: aload 0
invokeinterface org.springframework.context.i18n.LocaleContext.getLocale:()Ljava/util/Locale;
astore 1
start local 1 2: aload 1
ifnull 4
3: aload 1
areturn
end local 1 4: StackMap locals:
StackMap stack:
getstatic org.springframework.context.i18n.LocaleContextHolder.defaultLocale:Ljava/util/Locale;
ifnull 5
getstatic org.springframework.context.i18n.LocaleContextHolder.defaultLocale:Ljava/util/Locale;
goto 6
StackMap locals:
StackMap stack:
5: invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
StackMap locals:
StackMap stack: java.util.Locale
6: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 localeContext Lorg/springframework/context/i18n/LocaleContext;
2 4 1 locale Ljava/util/Locale;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
localeContext
public static void setTimeZone(java.util.TimeZone);
descriptor: (Ljava/util/TimeZone;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokestatic org.springframework.context.i18n.LocaleContextHolder.setTimeZone:(Ljava/util/TimeZone;Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 timeZone Ljava/util/TimeZone;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
timeZone
public static void setTimeZone(java.util.TimeZone, boolean);
descriptor: (Ljava/util/TimeZone;Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: invokestatic org.springframework.context.i18n.LocaleContextHolder.getLocaleContext:()Lorg/springframework/context/i18n/LocaleContext;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokeinterface org.springframework.context.i18n.LocaleContext.getLocale:()Ljava/util/Locale;
goto 3
StackMap locals: org.springframework.context.i18n.LocaleContext
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: java.util.Locale
3: astore 3
start local 3 4: aload 0
ifnull 7
5: new org.springframework.context.i18n.SimpleTimeZoneAwareLocaleContext
dup
aload 3
aload 0
invokespecial org.springframework.context.i18n.SimpleTimeZoneAwareLocaleContext.<init>:(Ljava/util/Locale;Ljava/util/TimeZone;)V
astore 2
6: goto 11
7: StackMap locals: java.util.Locale
StackMap stack:
aload 3
ifnull 10
8: new org.springframework.context.i18n.SimpleLocaleContext
dup
aload 3
invokespecial org.springframework.context.i18n.SimpleLocaleContext.<init>:(Ljava/util/Locale;)V
astore 2
9: goto 11
10: StackMap locals:
StackMap stack:
aconst_null
astore 2
11: StackMap locals:
StackMap stack:
aload 2
iload 1
invokestatic org.springframework.context.i18n.LocaleContextHolder.setLocaleContext:(Lorg/springframework/context/i18n/LocaleContext;Z)V
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 timeZone Ljava/util/TimeZone;
0 13 1 inheritable Z
1 13 2 localeContext Lorg/springframework/context/i18n/LocaleContext;
4 13 3 locale Ljava/util/Locale;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
timeZone
inheritable
public static void setDefaultTimeZone(java.util.TimeZone);
descriptor: (Ljava/util/TimeZone;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
putstatic org.springframework.context.i18n.LocaleContextHolder.defaultTimeZone:Ljava/util/TimeZone;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 timeZone Ljava/util/TimeZone;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
timeZone
public static java.util.TimeZone getTimeZone();
descriptor: ()Ljava/util/TimeZone;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.springframework.context.i18n.LocaleContextHolder.getLocaleContext:()Lorg/springframework/context/i18n/LocaleContext;
invokestatic org.springframework.context.i18n.LocaleContextHolder.getTimeZone:(Lorg/springframework/context/i18n/LocaleContext;)Ljava/util/TimeZone;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.util.TimeZone getTimeZone(org.springframework.context.i18n.LocaleContext);
descriptor: (Lorg/springframework/context/i18n/LocaleContext;)Ljava/util/TimeZone;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
instanceof org.springframework.context.i18n.TimeZoneAwareLocaleContext
ifeq 4
1: aload 0
checkcast org.springframework.context.i18n.TimeZoneAwareLocaleContext
invokeinterface org.springframework.context.i18n.TimeZoneAwareLocaleContext.getTimeZone:()Ljava/util/TimeZone;
astore 1
start local 1 2: aload 1
ifnull 4
3: aload 1
areturn
end local 1 4: StackMap locals:
StackMap stack:
getstatic org.springframework.context.i18n.LocaleContextHolder.defaultTimeZone:Ljava/util/TimeZone;
ifnull 5
getstatic org.springframework.context.i18n.LocaleContextHolder.defaultTimeZone:Ljava/util/TimeZone;
goto 6
StackMap locals:
StackMap stack:
5: invokestatic java.util.TimeZone.getDefault:()Ljava/util/TimeZone;
StackMap locals:
StackMap stack: java.util.TimeZone
6: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 localeContext Lorg/springframework/context/i18n/LocaleContext;
2 4 1 timeZone Ljava/util/TimeZone;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
localeContext
}
SourceFile: "LocaleContextHolder.java"