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

Commit d608a0ad authored by Clara Bayarri's avatar Clara Bayarri Committed by Raph Levien
Browse files

Fix TextUtils#getReverse deprecated doc

Note there is no alternative method to use.

Bug: 28296055
Change-Id: I1e44c1dad6009434a92c6a53862e6f061114bc56
parent 096e2dcf
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -505,15 +505,14 @@ public class TextUtils {
        return false;
    }

    /*
     * @deprecated
     * Do not use. This function only reverses individual {@code char}s and not their associated
     * spans. It doesn't support surrogate pairs (that correspond to non-BMP code points),
     * combining sequences or conjuncts either.
    /**
     * This function only reverses individual {@code char}s and not their associated
     * spans. It doesn't support surrogate pairs (that correspond to non-BMP code points), combining
     * sequences or conjuncts either.
     * @deprecated Do not use.
     */
    @Deprecated
    public static CharSequence getReverse(CharSequence source,
                                          int start, int end) {
    public static CharSequence getReverse(CharSequence source, int start, int end) {
        return new Reverser(source, start, end);
    }