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

Commit 5a39c95c authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Extra @Override removed in SpanStringBuilder

These were added in 99657 by using a misconfigured eclipse
save action that adds @Overirde to interfaces (Java 1.6 only).

Change-Id: I766bbde917b0bb063cb6d588ee276787e2f7db66
parent 2ea39e2d
Loading
Loading
Loading
Loading
+0 −28
Original line number Diff line number Diff line
@@ -105,7 +105,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
    /**
     * Return the char at the specified offset within the buffer.
     */
    @Override
    public char charAt(int where) {
        int len = length();
        if (where < 0) {
@@ -124,7 +123,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
    /**
     * Return the number of chars in the buffer.
     */
    @Override
    public int length() {
        return mText.length - mGapLength;
    }
@@ -207,19 +205,16 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
    }

    // Documentation from interface
    @Override
    public SpannableStringBuilder insert(int where, CharSequence tb, int start, int end) {
        return replace(where, where, tb, start, end);
    }

    // Documentation from interface
    @Override
    public SpannableStringBuilder insert(int where, CharSequence tb) {
        return replace(where, where, tb, 0, tb.length());
    }

    // Documentation from interface
    @Override
    public SpannableStringBuilder delete(int start, int end) {
        SpannableStringBuilder ret = replace(start, end, "", 0, 0);

@@ -230,13 +225,11 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
    }

    // Documentation from interface
    @Override
    public void clear() {
        replace(0, length(), "", 0, 0);
    }
    
    // Documentation from interface
    @Override
    public void clearSpans() {
        for (int i = mSpanCount - 1; i >= 0; i--) {
            Object what = mSpans[i];
@@ -256,21 +249,18 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
    }

    // Documentation from interface
    @Override
    public SpannableStringBuilder append(CharSequence text) {
        int length = length();
        return replace(length, length, text, 0, text.length());
    }

    // Documentation from interface
    @Override
    public SpannableStringBuilder append(CharSequence text, int start, int end) {
        int length = length();
        return replace(length, length, text, start, end);
    }

    // Documentation from interface
    @Override
    public SpannableStringBuilder append(char text) {
        return append(String.valueOf(text));
    }
@@ -419,13 +409,11 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
    }

    // Documentation from interface
    @Override
    public SpannableStringBuilder replace(int start, int end, CharSequence tb) {
        return replace(start, end, tb, 0, tb.length());
    }

    // Documentation from interface
    @Override
    public SpannableStringBuilder replace(final int start, final int end,
                        CharSequence tb, int tbstart, int tbend) {
        int filtercount = mFilters.length;
@@ -526,7 +514,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * The flags determine how the span will behave when text is
     * inserted at the start or end of the span's range.
     */
    @Override
    public void setSpan(Object what, int start, int end, int flags) {
        setSpan(true, what, start, end, flags);
    }
@@ -631,7 +618,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
    /**
     * Remove the specified markup object from the buffer.
     */
    @Override
    public void removeSpan(Object what) {
        for (int i = mSpanCount - 1; i >= 0; i--) {
            if (mSpans[i] == what) {
@@ -663,7 +649,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * Return the buffer offset of the beginning of the specified
     * markup object, or -1 if it is not attached to this buffer.
     */
    @Override
    public int getSpanStart(Object what) {
        int count = mSpanCount;
        Object[] spans = mSpans;
@@ -686,7 +671,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * Return the buffer offset of the end of the specified
     * markup object, or -1 if it is not attached to this buffer.
     */
    @Override
    public int getSpanEnd(Object what) {
        int count = mSpanCount;
        Object[] spans = mSpans;
@@ -709,7 +693,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * Return the flags of the end of the specified
     * markup object, or 0 if it is not attached to this buffer.
     */
    @Override
    public int getSpanFlags(Object what) {
        int count = mSpanCount;
        Object[] spans = mSpans;
@@ -728,7 +711,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * the specified range of the buffer.  The kind may be Object.class to get
     * a list of all the spans regardless of type.
     */
    @Override
    @SuppressWarnings("unchecked")
    public <T> T[] getSpans(int queryStart, int queryEnd, Class<T> kind) {
        int spanCount = mSpanCount;
@@ -830,7 +812,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * equal to <code>limit</code> where a span of the specified type
     * begins or ends.
     */
    @Override
    public int nextSpanTransition(int start, int limit, Class kind) {
        int count = mSpanCount;
        Object[] spans = mSpans;
@@ -865,7 +846,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * Return a new CharSequence containing a copy of the specified
     * range of this buffer, including the overlapping spans.
     */
    @Override
    public CharSequence subSequence(int start, int end) {
        return new SpannableStringBuilder(this, start, end);
    }
@@ -874,7 +854,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * Copy the specified range of chars from this buffer into the
     * specified array, beginning at the specified offset.
     */
    @Override
    public void getChars(int start, int end, char[] dest, int destoff) {
        checkRange("getChars", start, end);

@@ -1070,7 +1049,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * Don't call this yourself -- exists for Canvas to use internally.
     * {@hide}
     */
    @Override
    public void drawText(Canvas c, int start, int end,
                         float x, float y, Paint p) {
        checkRange("drawText", start, end);
@@ -1093,7 +1071,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * Don't call this yourself -- exists for Canvas to use internally.
     * {@hide}
     */
    @Override
    public void drawTextRun(Canvas c, int start, int end,
            int contextStart, int contextEnd,
            float x, float y, int flags, Paint p) {
@@ -1118,7 +1095,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * Don't call this yourself -- exists for Paint to use internally.
     * {@hide}
     */
    @Override
    public float measureText(int start, int end, Paint p) {
        checkRange("measureText", start, end);

@@ -1143,7 +1119,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * Don't call this yourself -- exists for Paint to use internally.
     * {@hide}
     */
    @Override
    public int getTextWidths(int start, int end, float[] widths, Paint p) {
        checkRange("getTextWidths", start, end);

@@ -1169,7 +1144,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
     * Don't call this yourself -- exists for Paint to use internally.
     * {@hide}
     */
    @Override
    public float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, int flags,
            float[] advances, int advancesPos, Paint p) {

@@ -1244,7 +1218,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
    }

    // Documentation from interface
    @Override
    public void setFilters(InputFilter[] filters) {
        if (filters == null) {
            throw new IllegalArgumentException();
@@ -1254,7 +1227,6 @@ implements CharSequence, GetChars, Spannable, Editable, Appendable,
    }

    // Documentation from interface
    @Override
    public InputFilter[] getFilters() {
        return mFilters;
    }