ICU-20534 Add Japanese era constant for REIWA in ICU4J JapaneseCalendar

This commit is contained in:
yumaoka 2019-04-04 01:59:20 -04:00 committed by Yoshito Umaoka
parent 52d192e2b5
commit 53f17806de

View file

@ -386,6 +386,12 @@ public class JapaneseCalendar extends GregorianCalendar {
*/
static public final int HEISEI;
/**
* Constant for the era starting on May 1, 2019 AD.
* @stable ICU 64
*/
static public final int REIWA;
// We want to make these era constants initialized in a static initializer
// block to prevent javac to inline these values in a consumer code.
// By doing so, we can keep better binary compatibility across versions even
@ -395,6 +401,7 @@ public class JapaneseCalendar extends GregorianCalendar {
TAISHO = 233;
SHOWA = 234;
HEISEI = 235;
REIWA = 236;
CURRENT_ERA = ERA_RULES.getCurrentEraIndex();
}