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:
Sebastian Bazley 2012-05-25 10:13:52 +00:00
parent 5384a20c28
commit c3c6f98e56
1 changed files with 3 additions and 3 deletions

View File

@ -280,12 +280,12 @@ public class LocaleUtils {
}
//-----------------------------------------------------------------------
// class to avoid synchronization
// class to avoid synchronization (Init on demand)
static class SyncAvoid {
/** 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. */
private static Set<Locale> AVAILABLE_LOCALE_SET;
private static final Set<Locale> AVAILABLE_LOCALE_SET;
static {
List<Locale> list = new ArrayList<Locale>(Arrays.asList(Locale.getAvailableLocales())); // extra safe