jdk/src/share/classes/sun/util/locale/provider/JRELocaleProviderAdapter.java
changeset 15260 7af2d7a87806
parent 14502 d63fed06fed4
child 16481 8e30386cc014
equal deleted inserted replaced
15259:33fec5f9630b 15260:7af2d7a87806
    52  * LocaleProviderAdapter implementation for the legacy JRE locale data.
    52  * LocaleProviderAdapter implementation for the legacy JRE locale data.
    53  *
    53  *
    54  * @author Naoto Sato
    54  * @author Naoto Sato
    55  * @author Masayoshi Okutsu
    55  * @author Masayoshi Okutsu
    56  */
    56  */
    57 public class JRELocaleProviderAdapter extends LocaleProviderAdapter {
    57 public class JRELocaleProviderAdapter extends LocaleProviderAdapter implements ResourceBundleBasedAdapter {
    58 
    58 
    59     private static final String LOCALE_DATA_JAR_NAME = "localedata.jar";
    59     private static final String LOCALE_DATA_JAR_NAME = "localedata.jar";
    60 
    60 
    61     private final ConcurrentMap<String, Set<String>> langtagSets
    61     private final ConcurrentMap<String, Set<String>> langtagSets
    62         = new ConcurrentHashMap<>();
    62         = new ConcurrentHashMap<>();
   294             }
   294             }
   295         }
   295         }
   296         return lr;
   296         return lr;
   297     }
   297     }
   298 
   298 
       
   299     // ResourceBundleBasedAdapter method implementation
   299     @Override
   300     @Override
   300     public LocaleData getLocaleData() {
   301     public LocaleData getLocaleData() {
   301         if (localeData == null) {
   302         if (localeData == null) {
   302             synchronized (this) {
   303             synchronized (this) {
   303                 if (localeData == null) {
   304                 if (localeData == null) {