Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40a72dc8 authored by Joachim Sauer's avatar Joachim Sauer
Browse files

Deprecate internal Calendar methods.

These methods suffer from a potential integer overflow that can't be
fixed without changing their signature as described at
http://bugs.icu-project.org/trac/ticket/11632.

Since they could be overridden, we need to deprecate them for at least
one release before changing/removing them.

Bug: 30300853
Test: m checkbuild && m offline-sdk-referenceonly-docs
Change-Id: I07e14de697c1551b8d99fbd5af2a56a498226e66
parent fe86a197
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18179,9 +18179,9 @@ package android.icu.util {
    method protected final void computeGregorianFields(int);
    method protected int computeGregorianMonthStart(int, int);
    method protected int computeJulianDay();
    method protected int computeMillisInDay();
    method protected deprecated int computeMillisInDay();
    method protected void computeTime();
    method protected int computeZoneOffset(long, int);
    method protected deprecated int computeZoneOffset(long, int);
    method public int fieldDifference(java.util.Date, int);
    method protected java.lang.String fieldName(int);
    method protected static final long floorDivide(long, long);
+2 −2
Original line number Diff line number Diff line
@@ -19394,9 +19394,9 @@ package android.icu.util {
    method protected final void computeGregorianFields(int);
    method protected int computeGregorianMonthStart(int, int);
    method protected int computeJulianDay();
    method protected int computeMillisInDay();
    method protected deprecated int computeMillisInDay();
    method protected void computeTime();
    method protected int computeZoneOffset(long, int);
    method protected deprecated int computeZoneOffset(long, int);
    method public int fieldDifference(java.util.Date, int);
    method protected java.lang.String fieldName(int);
    method protected static final long floorDivide(long, long);
+2 −2
Original line number Diff line number Diff line
@@ -18197,9 +18197,9 @@ package android.icu.util {
    method protected final void computeGregorianFields(int);
    method protected int computeGregorianMonthStart(int, int);
    method protected int computeJulianDay();
    method protected int computeMillisInDay();
    method protected deprecated int computeMillisInDay();
    method protected void computeTime();
    method protected int computeZoneOffset(long, int);
    method protected deprecated int computeZoneOffset(long, int);
    method public int fieldDifference(java.util.Date, int);
    method protected java.lang.String fieldName(int);
    method protected static final long floorDivide(long, long);