From 4fc161c4f95f01984b1c0d51a6e659407db06a54 Mon Sep 17 00:00:00 2001 From: sherman Date: Thu, 17 Oct 2013 23:43:08 -0700 Subject: [PATCH] 8025971: Remove ZoneId.OLD_SHORT_IDS 8026197: Slow reading tzdb.dat if the JRE is on a high-latency, remote file system Summary: removed the compatiblity old short-ids mapping Reviewed-by: okutsu --- src/share/classes/java/time/ZoneId.java | 119 +++++------------- .../java/time/zone/TzdbZoneRulesProvider.java | 4 +- src/share/classes/java/util/TimeZone.java | 11 +- .../sun/util/calendar/ZoneInfoFile.java | 8 +- test/java/time/tck/java/time/TCKZoneId.java | 41 ------ test/java/util/Calendar/JavatimeTest.java | 4 +- 6 files changed, 56 insertions(+), 131 deletions(-) diff --git a/src/share/classes/java/time/ZoneId.java b/src/share/classes/java/time/ZoneId.java index 42f390937..aabc7fce9 100644 --- a/src/share/classes/java/time/ZoneId.java +++ b/src/share/classes/java/time/ZoneId.java @@ -168,51 +168,6 @@ import java.util.TimeZone; */ public abstract class ZoneId implements Serializable { - /** - * A map of zone overrides to enable the older short time-zone names to be used. - *

- * Use of short zone IDs has been deprecated in {@code java.util.TimeZone}. - * This map allows the IDs to continue to be used via the - * {@link #of(String, Map)} factory method. - *

- * This map contains an older mapping of the IDs, where 'EST', 'MST' and 'HST' - * map to IDs which include daylight savings. - * This is in line with versions of TZDB before 2005r. - *

- * This maps as follows: - *

- * The map is unmodifiable. - */ - public static final Map OLD_SHORT_IDS; /** * A map of zone overrides to enable the short time-zone names to be used. *

@@ -220,9 +175,9 @@ public abstract class ZoneId implements Serializable { * This map allows the IDs to continue to be used via the * {@link #of(String, Map)} factory method. *

- * This map contains a newer mapping of the IDs, where 'EST', 'MST' and 'HST' - * map to IDs which do not include daylight savings - * This is in line with TZDB 2005r and later. + * This map contains a mapping of the IDs that is in line with TZDB 2005r and + * later, where 'EST', 'MST' and 'HST' map to IDs which do not include daylight + * savings. *

* This maps as follows: *