equal
deleted
inserted
replaced
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 /** |