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

Commit 7d627eb9 authored by Raph Levien's avatar Raph Levien
Browse files

Fix documentation of nextSpanTransition off by one

Improve wording of javadoc for nextSpanTransition() to accurately
reflect the actual implementation.

Bug: 19274845
Change-Id: I8f8fb6a21a8cbcc26fefb63164a6943431d16089
parent 5e4c382d
Loading
Loading
Loading
Loading
+5 −6
Original line number Original line Diff line number Diff line
@@ -187,12 +187,11 @@ extends CharSequence
    public int getSpanFlags(Object tag);
    public int getSpanFlags(Object tag);


    /**
    /**
     * Return the first offset greater than or equal to <code>start</code>
     * Return the first offset greater than <code>start</code> where a markup
     * where a markup object of class <code>type</code> begins or ends,
     * object of class <code>type</code> begins or ends, or <code>limit</code>
     * or <code>limit</code> if there are no starts or ends greater than or
     * if there are no starts or ends greater than <code>start</code> but less
     * equal to <code>start</code> but less than <code>limit</code>.  Specify
     * than <code>limit</code>. Specify <code>null</code> or Object.class for
     * <code>null</code> or Object.class for the type if you want every
     * the type if you want every transition regardless of type.
     * transition regardless of type.
     */
     */
    public int nextSpanTransition(int start, int limit, Class type);
    public int nextSpanTransition(int start, int limit, Class type);
}
}