< prev index next >

src/java.base/share/classes/sun/util/locale/provider/JRELocaleProviderAdapter.java

Print this page
rev 54349 : 8221701: Archive constant BaseLocales
Reviewed-by: TBD

@@ -489,12 +489,11 @@
     /**
      * Lazy load available locales.
      */
     private static class AvailableJRELocales {
         private static final Locale[] localeList = createAvailableLocales();
-        private AvailableJRELocales() {
-        }
+        private AvailableJRELocales() {}
     }
 
     private static Locale[] createAvailableLocales() {
         /*
          * Gets the locale string list from LocaleDataMetaInfo classes and then

@@ -533,11 +532,11 @@
 
     @Override
     public boolean isSupportedProviderLocale(Locale locale,  Set<String> langtags) {
         if (Locale.ROOT.equals(locale)) {
             return true;
-}
+        }
 
         locale = locale.stripExtensions();
         if (langtags.contains(locale.toLanguageTag())) {
             return true;
         }
< prev index next >