Skip to content

Commit

Permalink
Do not add all links
Browse files Browse the repository at this point in the history
  • Loading branch information
naotoj committed Sep 13, 2024
1 parent 142a2f3 commit 204041b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1216,11 +1216,9 @@ private static void generateZoneName() throws Exception {
// This method assumes handlerMetaZones is already initialized
private static Set<String> getAvailableZoneIds() {
assert handlerMetaZones != null;
assert tzdbLinks != null;
if (AVAILABLE_TZIDS == null) {
AVAILABLE_TZIDS = new HashSet<>(ZoneId.getAvailableZoneIds());
AVAILABLE_TZIDS = new HashSet<>(Arrays.asList(TimeZone.getAvailableIDs()));
AVAILABLE_TZIDS.addAll(handlerMetaZones.keySet());
AVAILABLE_TZIDS.addAll(tzdbLinks.keySet());
AVAILABLE_TZIDS.remove(MetaZonesParseHandler.NO_METAZONE_KEY);
}

Expand Down

0 comments on commit 204041b

Please sign in to comment.