Use final.
This commit is contained in:
parent
7c60085179
commit
777590c82c
|
@ -101,7 +101,7 @@ public class LocaleUtils {
|
|||
return Collections.emptyList();
|
||||
}
|
||||
return cCountriesByLanguage.computeIfAbsent(languageCode, lc -> {
|
||||
List<Locale> countries = new ArrayList<>();
|
||||
final List<Locale> countries = new ArrayList<>();
|
||||
final List<Locale> locales = availableLocaleList();
|
||||
for (final Locale locale : locales) {
|
||||
if (languageCode.equals(locale.getLanguage()) && !locale.getCountry().isEmpty() && locale.getVariant().isEmpty()) {
|
||||
|
@ -167,7 +167,7 @@ public class LocaleUtils {
|
|||
}
|
||||
return cLanguagesByCountry.computeIfAbsent(countryCode, k -> {
|
||||
final List<Locale> locales = availableLocaleList();
|
||||
List<Locale> langs = new ArrayList<>();
|
||||
final List<Locale> langs = new ArrayList<>();
|
||||
for (final Locale locale : locales) {
|
||||
if (countryCode.equals(locale.getCountry()) && locale.getVariant().isEmpty()) {
|
||||
langs.add(locale);
|
||||
|
|
|
@ -60,14 +60,14 @@ class GmtTimeZone extends TimeZone {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
public boolean equals(final Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof GmtTimeZone)) {
|
||||
return false;
|
||||
}
|
||||
GmtTimeZone other = (GmtTimeZone) obj;
|
||||
final GmtTimeZone other = (GmtTimeZone) obj;
|
||||
return offset == other.offset && Objects.equals(zoneId, other.zoneId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue