|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2017 the original author or authors. |
|
|
|
|
* Copyright 2002-2018 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -42,7 +42,7 @@ import org.springframework.lang.Nullable;
@@ -42,7 +42,7 @@ import org.springframework.lang.Nullable;
|
|
|
|
|
* @see org.springframework.context.support.MessageSourceAccessor |
|
|
|
|
* @see org.springframework.web.servlet.DispatcherServlet |
|
|
|
|
*/ |
|
|
|
|
public abstract class LocaleContextHolder { |
|
|
|
|
public final class LocaleContextHolder { |
|
|
|
|
|
|
|
|
|
private static final ThreadLocal<LocaleContext> localeContextHolder = |
|
|
|
|
new NamedThreadLocal<>("LocaleContext"); |
|
|
|
|
@ -59,6 +59,10 @@ public abstract class LocaleContextHolder {
@@ -59,6 +59,10 @@ public abstract class LocaleContextHolder {
|
|
|
|
|
private static TimeZone defaultTimeZone; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private LocaleContextHolder() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Reset the LocaleContext for the current thread. |
|
|
|
|
*/ |
|
|
|
|
|