diff options
author | Victor Chang <vichang@google.com> | 2019-05-03 14:28:20 +0100 |
---|---|---|
committer | Victor Chang <vichang@google.com> | 2019-05-03 14:28:20 +0100 |
commit | 8d69313c3f8865758c7ed0cb79469aeda9d5d5e6 (patch) | |
tree | 900e4e261575a83325f8e7aa535bbc146e3c21dc /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 304132e995c17a09ec57fda93ba9ecc7e9666cc1 (diff) |
Remove JapaneseCalendar.CURRENT_ERA from Android public SDK
JapaneseCalendar.CURRENT_ERA is final static int, and the developer
may mis-use and could have wrong expectation on this API, since
1. New emperor in Japan could result in a new era, but old Android device
still provides an outdated "current" era.
2. Developer may expect its value depending on system time. However,
given it's a static final int,
Android could intiailize the value at boot with an incorrect time,
and thus results in incorrect era. Thus, on Android, The value is
always hard-coded.
Bug: 131893534
Test: make
Change-Id: I16ea841975dd8e913409c884123003f842c55bb8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions