author | naoto |
Wed, 11 Apr 2018 09:14:47 -0700 | |
changeset 49574 | 6a6ee36037ac |
child 49699 | 5c2cddff67b6 |
permissions | -rw-r--r-- |
49574
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
1 |
/* |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
2 |
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
4 |
* |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
10 |
* |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
15 |
* accompanied this code). |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
16 |
* |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
20 |
* |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
23 |
* questions. |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
24 |
*/ |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
25 |
package java.time.format; |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
26 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
27 |
import java.util.HashMap; |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
28 |
import java.util.Locale; |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
29 |
import java.util.Map; |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
30 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
31 |
/** |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
32 |
* A helper class to map a zone name to metazone and back to the |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
33 |
* appropriate zone id for the particular locale. |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
34 |
* <p> |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
35 |
* The zid<->metazone mappings are based on CLDR metaZones.xml. |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
36 |
* The alias mappings are based on Link entries in tzdb data files and |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
37 |
* CLDR's supplementalMetadata.xml. |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
38 |
*/ |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
39 |
class ZoneName { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
40 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
41 |
public static String toZid(String zid, Locale locale) { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
42 |
String mzone = zidToMzone.get(zid); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
43 |
if (mzone == null && aliases.containsKey(zid)) { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
44 |
zid = aliases.get(zid); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
45 |
mzone = zidToMzone.get(zid); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
46 |
} |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
47 |
if (mzone != null) { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
48 |
Map<String, String> map = mzoneToZidL.get(mzone); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
49 |
if (map != null && map.containsKey(locale.getCountry())) { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
50 |
zid = map.get(locale.getCountry()); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
51 |
} else { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
52 |
zid = mzoneToZid.get(mzone); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
53 |
} |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
54 |
} |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
55 |
return toZid(zid); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
56 |
} |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
57 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
58 |
public static String toZid(String zid) { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
59 |
if (aliases.containsKey(zid)) { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
60 |
return aliases.get(zid); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
61 |
} |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
62 |
return zid; |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
63 |
} |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
64 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
65 |
private static final String[] zidMap = new String[] { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
66 |
// From metaZones.xml |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
67 |
%%%%ZIDMAP%%%% |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
68 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
69 |
// From tzdb |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
70 |
"Africa/Khartoum", "Africa_Central", "Africa/Maputo", // tzdata2017c |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
71 |
"Africa/Windhoek", "Africa_Central", "Africa/Maputo", // tzdata2017c |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
72 |
"Africa/Sao_Tome", "Africa_Western", "Africa/Lagos", // tzdata2018c |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
73 |
}; |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
74 |
private static final String[] mzoneMap = new String[] { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
75 |
// From metaZones.xml |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
76 |
%%%%MZONEMAP%%%% |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
77 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
78 |
// From tzdb |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
79 |
"Africa_Western", "ST", "Africa/Sao_Tome", // tzdata2018c |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
80 |
}; |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
81 |
private static final String[] aliasMap = new String[] { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
82 |
// From supplementalMetadata.xml |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
83 |
%%%%DEPRECATED%%%% |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
84 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
85 |
// From tzdb |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
86 |
"Brazil/Acre", "America/Rio_Branco", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
87 |
"US/Indiana-Starke", "America/Indiana/Knox", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
88 |
"America/Atka", "America/Adak", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
89 |
"America/St_Barthelemy", "America/Guadeloupe", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
90 |
"Australia/North", "Australia/Darwin", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
91 |
"Europe/Zagreb", "Europe/Belgrade", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
92 |
"Etc/Universal", "Etc/UTC", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
93 |
"NZ-CHAT", "Pacific/Chatham", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
94 |
"Asia/Macao", "Asia/Macau", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
95 |
"Pacific/Yap", "Pacific/Chuuk", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
96 |
"Egypt", "Africa/Cairo", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
97 |
"US/Central", "America/Chicago", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
98 |
"Canada/Atlantic", "America/Halifax", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
99 |
"Brazil/East", "America/Sao_Paulo", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
100 |
"America/Cordoba", "America/Argentina/Cordoba", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
101 |
"US/Hawaii", "Pacific/Honolulu", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
102 |
"America/Louisville", "America/Kentucky/Louisville", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
103 |
"America/Shiprock", "America/Denver", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
104 |
"Australia/Canberra", "Australia/Sydney", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
105 |
"Asia/Chungking", "Asia/Chongqing", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
106 |
"Universal", "Etc/UTC", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
107 |
"US/Alaska", "America/Anchorage", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
108 |
"Asia/Ujung_Pandang", "Asia/Makassar", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
109 |
"Japan", "Asia/Tokyo", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
110 |
"Atlantic/Faeroe", "Atlantic/Faroe", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
111 |
"Asia/Istanbul", "Europe/Istanbul", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
112 |
"US/Pacific", "America/Los_Angeles", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
113 |
"Mexico/General", "America/Mexico_City", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
114 |
"Poland", "Europe/Warsaw", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
115 |
"Africa/Asmera", "Africa/Asmara", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
116 |
"Asia/Saigon", "Asia/Ho_Chi_Minh", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
117 |
"US/Michigan", "America/Detroit", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
118 |
"America/Argentina/ComodRivadavia", "America/Argentina/Catamarca", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
119 |
"W-SU", "Europe/Moscow", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
120 |
"Australia/ACT", "Australia/Sydney", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
121 |
"Asia/Calcutta", "Asia/Kolkata", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
122 |
"Arctic/Longyearbyen", "Europe/Oslo", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
123 |
"America/Knox_IN", "America/Indiana/Knox", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
124 |
"ROC", "Asia/Taipei", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
125 |
"Zulu", "Etc/UTC", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
126 |
"Australia/Yancowinna", "Australia/Broken_Hill", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
127 |
"Australia/West", "Australia/Perth", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
128 |
"Singapore", "Asia/Singapore", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
129 |
"Europe/Mariehamn", "Europe/Helsinki", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
130 |
"ROK", "Asia/Seoul", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
131 |
"America/Porto_Acre", "America/Rio_Branco", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
132 |
"Etc/Zulu", "Etc/UTC", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
133 |
"Canada/Yukon", "America/Whitehorse", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
134 |
"Europe/Vatican", "Europe/Rome", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
135 |
"Africa/Timbuktu", "Africa/Bamako", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
136 |
"America/Buenos_Aires", "America/Argentina/Buenos_Aires", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
137 |
"Canada/Pacific", "America/Vancouver", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
138 |
"US/Pacific-New", "America/Los_Angeles", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
139 |
"Mexico/BajaNorte", "America/Tijuana", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
140 |
"Europe/Guernsey", "Europe/London", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
141 |
"Asia/Tel_Aviv", "Asia/Jerusalem", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
142 |
"Chile/Continental", "America/Santiago", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
143 |
"Jamaica", "America/Jamaica", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
144 |
"Mexico/BajaSur", "America/Mazatlan", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
145 |
"Canada/Eastern", "America/Toronto", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
146 |
"Australia/Tasmania", "Australia/Hobart", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
147 |
"NZ", "Pacific/Auckland", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
148 |
"America/Lower_Princes", "America/Curacao", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
149 |
"GMT-", "Etc/GMT", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
150 |
"America/Rosario", "America/Argentina/Cordoba", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
151 |
"Libya", "Africa/Tripoli", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
152 |
"Asia/Ashkhabad", "Asia/Ashgabat", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
153 |
"Australia/NSW", "Australia/Sydney", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
154 |
"America/Marigot", "America/Guadeloupe", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
155 |
"Europe/Bratislava", "Europe/Prague", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
156 |
"Portugal", "Europe/Lisbon", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
157 |
"Etc/GMT-", "Etc/GMT", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
158 |
"Europe/San_Marino", "Europe/Rome", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
159 |
"Europe/Sarajevo", "Europe/Belgrade", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
160 |
"Antarctica/South_Pole", "Antarctica/McMurdo", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
161 |
"Canada/Central", "America/Winnipeg", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
162 |
"Etc/GMT", "Etc/GMT", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
163 |
"Europe/Isle_of_Man", "Europe/London", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
164 |
"America/Fort_Wayne", "America/Indiana/Indianapolis", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
165 |
"Eire", "Europe/Dublin", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
166 |
"America/Coral_Harbour", "America/Atikokan", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
167 |
"Europe/Nicosia", "Asia/Nicosia", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
168 |
"US/Samoa", "Pacific/Pago_Pago", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
169 |
"Hongkong", "Asia/Hong_Kong", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
170 |
"Canada/Saskatchewan", "America/Regina", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
171 |
"Asia/Thimbu", "Asia/Thimphu", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
172 |
"Kwajalein", "Pacific/Kwajalein", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
173 |
"GB", "Europe/London", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
174 |
"Chile/EasterIsland", "Pacific/Easter", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
175 |
"US/East-Indiana", "America/Indiana/Indianapolis", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
176 |
"Australia/LHI", "Australia/Lord_Howe", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
177 |
"Cuba", "America/Havana", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
178 |
"America/Jujuy", "America/Argentina/Jujuy", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
179 |
"US/Mountain", "America/Denver", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
180 |
"Atlantic/Jan_Mayen", "Europe/Oslo", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
181 |
"Europe/Tiraspol", "Europe/Chisinau", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
182 |
"Europe/Podgorica", "Europe/Belgrade", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
183 |
"US/Arizona", "America/Phoenix", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
184 |
"Navajo", "America/Denver", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
185 |
"Etc/Greenwich", "Etc/GMT", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
186 |
"Canada/Mountain", "America/Edmonton", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
187 |
"Iceland", "Atlantic/Reykjavik", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
188 |
"Australia/Victoria", "Australia/Melbourne", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
189 |
"Australia/South", "Australia/Adelaide", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
190 |
"Brazil/West", "America/Manaus", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
191 |
"Pacific/Ponape", "Pacific/Pohnpei", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
192 |
"Europe/Ljubljana", "Europe/Belgrade", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
193 |
"Europe/Jersey", "Europe/London", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
194 |
"Australia/Queensland", "Australia/Brisbane", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
195 |
"UTC", "Etc/UTC", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
196 |
"Canada/Newfoundland", "America/St_Johns", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
197 |
"Europe/Skopje", "Europe/Belgrade", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
198 |
"PRC", "Asia/Shanghai", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
199 |
"UCT", "Etc/UCT", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
200 |
"America/Mendoza", "America/Argentina/Mendoza", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
201 |
"Israel", "Asia/Jerusalem", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
202 |
"US/Eastern", "America/New_York", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
203 |
"Asia/Ulan_Bator", "Asia/Ulaanbaatar", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
204 |
"Turkey", "Europe/Istanbul", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
205 |
"GMT", "Etc/GMT", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
206 |
"US/Aleutian", "America/Adak", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
207 |
"Brazil/DeNoronha", "America/Noronha", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
208 |
"GB-Eire", "Europe/London", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
209 |
"Asia/Dacca", "Asia/Dhaka", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
210 |
"America/Ensenada", "America/Tijuana", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
211 |
"America/Catamarca", "America/Argentina/Catamarca", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
212 |
"Iran", "Asia/Tehran", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
213 |
"Greenwich", "Etc/GMT", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
214 |
"Pacific/Truk", "Pacific/Chuuk", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
215 |
"Pacific/Samoa", "Pacific/Pago_Pago", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
216 |
"America/Virgin", "America/St_Thomas", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
217 |
"Asia/Katmandu", "Asia/Kathmandu", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
218 |
"America/Indianapolis", "America/Indiana/Indianapolis", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
219 |
"Europe/Belfast", "Europe/London", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
220 |
"America/Kralendijk", "America/Curacao", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
221 |
"Asia/Rangoon", "Asia/Yangon", |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
222 |
}; |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
223 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
224 |
private static final Map<String, String> zidToMzone = new HashMap<>(); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
225 |
private static final Map<String, String> mzoneToZid = new HashMap<>(); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
226 |
private static final Map<String, Map<String, String>> mzoneToZidL = new HashMap<>(); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
227 |
private static final Map<String, String> aliases = new HashMap<>(); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
228 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
229 |
static { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
230 |
for (int i = 0; i < zidMap.length; i += 3) { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
231 |
zidToMzone.put(zidMap[i], zidMap[i + 1]); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
232 |
mzoneToZid.put(zidMap[i + 1], zidMap[i + 2]); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
233 |
} |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
234 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
235 |
for (int i = 0; i < mzoneMap.length; i += 3) { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
236 |
String mzone = mzoneMap[i]; |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
237 |
Map<String, String> map = mzoneToZidL.get(mzone); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
238 |
if (map == null) { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
239 |
map = new HashMap<>(); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
240 |
mzoneToZidL.put(mzone, map); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
241 |
} |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
242 |
map.put(mzoneMap[i + 1], mzoneMap[i + 2]); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
243 |
} |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
244 |
|
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
245 |
for (int i = 0; i < aliasMap.length; i += 2) { |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
246 |
aliases.put(aliasMap[i], aliasMap[i + 1]); |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
247 |
} |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
248 |
} |
6a6ee36037ac
8189784: Parsing with Java 9 AKST timezone returns the SystemV variant of the timezone
naoto
parents:
diff
changeset
|
249 |
} |