Skip to content

Commit

Permalink
Reflects review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
naotoj committed Oct 16, 2024
1 parent 459c650 commit 0cae3eb
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,6 @@ public Void run() {
});
}

private static void addOldMapping() {
for (var key : ZoneId.SHORT_IDS.keySet()) {
switch (key) {
case "EST" -> aliases.put("EST", "America/Panama");
case "MST" -> aliases.put("MST", "America/Phoenix");
default -> aliases.put(key, ZoneId.SHORT_IDS.get(key));
}
}
}

/**
* Loads the rules from a DateInputStream
*
Expand Down Expand Up @@ -299,7 +289,9 @@ private static void load(DataInputStream dis) throws IOException {
}
}
// old us time-zone names
addOldMapping();
for (var key : ZoneId.SHORT_IDS.keySet()) {
aliases.put(key, ZoneId.SHORT_IDS.get(key));
}
}

/////////////////////////Ser/////////////////////////////////
Expand Down

0 comments on commit 0cae3eb

Please sign in to comment.