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
This commit is contained in:
@@ -20930,7 +20930,6 @@ package android.icu.util {
|
||||
ctor public JapaneseCalendar(int, int, int, int);
|
||||
ctor public JapaneseCalendar(int, int, int);
|
||||
ctor public JapaneseCalendar(int, int, int, int, int, int);
|
||||
field @Deprecated public static final int CURRENT_ERA;
|
||||
field public static final int HEISEI;
|
||||
field public static final int MEIJI;
|
||||
field public static final int SHOWA;
|
||||
|
||||
@@ -275,6 +275,14 @@ package android.hardware {
|
||||
|
||||
}
|
||||
|
||||
package android.icu.util {
|
||||
|
||||
public class JapaneseCalendar extends android.icu.util.GregorianCalendar {
|
||||
field public static final int CURRENT_ERA;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
package android.location {
|
||||
|
||||
public class Location implements android.os.Parcelable {
|
||||
|
||||
Reference in New Issue
Block a user