Consistent final declaration for static delegate classes

Issue: SPR-16968
This commit is contained in:
Juergen Hoeller
2018-07-02 13:55:18 +02:00
parent 2ade122543
commit e5a6711d29
12 changed files with 65 additions and 17 deletions

View File

@@ -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;
* @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 {
private static TimeZone defaultTimeZone;
private LocaleContextHolder() {
}
/**
* Reset the LocaleContext for the current thread.
*/