jdk/src/share/classes/java/util/TimeZone.java
changeset 18543 f3305b091190
parent 16852 60207b2b4b42
child 19074 84a8d23e8f32
child 20822 2552851d9562
equal deleted inserted replaced
18542:7b1fa08a804e 18543:f3305b091190
   417             offset += getDSTSavings();
   417             offset += getDSTSavings();
   418         }
   418         }
   419         return ZoneInfoFile.toCustomID(offset);
   419         return ZoneInfoFile.toCustomID(offset);
   420     }
   420     }
   421 
   421 
   422     private static class DisplayNames {
       
   423         // Cache for managing display names per timezone per locale
       
   424         // The structure is:
       
   425         //   Map(key=id, value=SoftReference(Map(key=locale, value=displaynames)))
       
   426         private static final Map<String, SoftReference<Map<Locale, String[]>>> CACHE =
       
   427             new ConcurrentHashMap<>();
       
   428 
       
   429         private DisplayNames() {
       
   430         }
       
   431     }
       
   432 
       
   433     private static String[] getDisplayNames(String id, Locale locale) {
   422     private static String[] getDisplayNames(String id, Locale locale) {
   434         return TimeZoneNameUtility.retrieveDisplayNames(id, locale);
   423         return TimeZoneNameUtility.retrieveDisplayNames(id, locale);
   435     }
   424     }
   436 
   425 
   437     /**
   426     /**