mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8174268: Declare a public field in JapaneseEra for the era starting May 2019
Reviewed-by: rriggs, chegar
This commit is contained in:
parent
2a510a6353
commit
0b2e2ca9bd
7 changed files with 37 additions and 27 deletions
|
@ -152,9 +152,10 @@ public final class JapaneseEra
|
|||
public static final JapaneseEra HEISEI = new JapaneseEra(2, LocalDate.of(1989, 1, 8));
|
||||
/**
|
||||
* The singleton instance for the 'Reiwa' era (2019-05-01 - )
|
||||
* which has the value 3.
|
||||
* which has the value 3. The end date of this era is not specified, unless
|
||||
* the Japanese Government defines it.
|
||||
*/
|
||||
private static final JapaneseEra REIWA = new JapaneseEra(3, LocalDate.of(2019, 5, 1));
|
||||
public static final JapaneseEra REIWA = new JapaneseEra(3, LocalDate.of(2019, 5, 1));
|
||||
|
||||
// The number of predefined JapaneseEra constants.
|
||||
// There may be a supplemental era defined by the property.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue