|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
|
72 | 72 | import java.time.temporal.TemporalAccessor;
|
73 | 73 | import java.time.temporal.TemporalField;
|
74 | 74 | import java.time.temporal.ValueRange;
|
75 |
| -import java.util.HashMap; |
76 | 75 | import java.util.List;
|
77 | 76 | import java.util.Locale;
|
78 | 77 | import java.util.Map;
|
@@ -121,41 +120,6 @@ public final class ThaiBuddhistChronology extends AbstractChronology implements
|
121 | 120 | * Containing the offset to add to the ISO year.
|
122 | 121 | */
|
123 | 122 | static final int YEARS_DIFFERENCE = 543;
|
124 |
| - /** |
125 |
| - * Narrow names for eras. |
126 |
| - */ |
127 |
| - private static final HashMap<String, String[]> ERA_NARROW_NAMES = new HashMap<>(); |
128 |
| - /** |
129 |
| - * Short names for eras. |
130 |
| - */ |
131 |
| - private static final HashMap<String, String[]> ERA_SHORT_NAMES = new HashMap<>(); |
132 |
| - /** |
133 |
| - * Full names for eras. |
134 |
| - */ |
135 |
| - private static final HashMap<String, String[]> ERA_FULL_NAMES = new HashMap<>(); |
136 |
| - /** |
137 |
| - * Fallback language for the era names. |
138 |
| - */ |
139 |
| - private static final String FALLBACK_LANGUAGE = "en"; |
140 |
| - /** |
141 |
| - * Language that has the era names. |
142 |
| - */ |
143 |
| - private static final String TARGET_LANGUAGE = "th"; |
144 |
| - /** |
145 |
| - * Name data. |
146 |
| - */ |
147 |
| - static { |
148 |
| - ERA_NARROW_NAMES.put(FALLBACK_LANGUAGE, new String[]{"BB", "BE"}); |
149 |
| - ERA_NARROW_NAMES.put(TARGET_LANGUAGE, new String[]{"BB", "BE"}); |
150 |
| - ERA_SHORT_NAMES.put(FALLBACK_LANGUAGE, new String[]{"B.B.", "B.E."}); |
151 |
| - ERA_SHORT_NAMES.put(TARGET_LANGUAGE, |
152 |
| - new String[]{"\u0e1e.\u0e28.", |
153 |
| - "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48"}); |
154 |
| - ERA_FULL_NAMES.put(FALLBACK_LANGUAGE, new String[]{"Before Buddhist", "Budhhist Era"}); |
155 |
| - ERA_FULL_NAMES.put(TARGET_LANGUAGE, |
156 |
| - new String[]{"\u0e1e\u0e38\u0e17\u0e18\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a", |
157 |
| - "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48"}); |
158 |
| - } |
159 | 123 |
|
160 | 124 | /**
|
161 | 125 | * Restricted constructor.
|
|
0 commit comments