LANG-511 Make private immutable fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1342558 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5384a20c28
commit
c3c6f98e56
|
@ -280,12 +280,12 @@ public class LocaleUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
// class to avoid synchronization
|
// class to avoid synchronization (Init on demand)
|
||||||
static class SyncAvoid {
|
static class SyncAvoid {
|
||||||
/** Unmodifiable list of available locales. */
|
/** Unmodifiable list of available locales. */
|
||||||
private static List<Locale> AVAILABLE_LOCALE_LIST;
|
private static final List<Locale> AVAILABLE_LOCALE_LIST;
|
||||||
/** Unmodifiable set of available locales. */
|
/** Unmodifiable set of available locales. */
|
||||||
private static Set<Locale> AVAILABLE_LOCALE_SET;
|
private static final Set<Locale> AVAILABLE_LOCALE_SET;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
List<Locale> list = new ArrayList<Locale>(Arrays.asList(Locale.getAvailableLocales())); // extra safe
|
List<Locale> list = new ArrayList<Locale>(Arrays.asList(Locale.getAvailableLocales())); // extra safe
|
||||||
|
|
Loading…
Reference in New Issue