private void addToLocaleList ( List localeList , List < Locale > locales ) { if ( locales != null ) { for ( Locale locale : locales ) { if ( locale != null && ! localeList . contains ( locale ) ) localeList . add ( locale ) ; } } }
Add locales to the locale list if they aren t in there already