8174268: Declare a public field in JapaneseEra for the era starting May 2019

Reviewed-by: rriggs, chegar
This commit is contained in:
Naoto Sato 2019-04-01 08:21:45 -07:00
parent 2a510a6353
commit 0b2e2ca9bd
7 changed files with 37 additions and 27 deletions

View file

@ -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.