From 7d627eb9d28468f1ca861626128a67c9254071df Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Wed, 10 Jun 2015 15:19:50 -0700 Subject: [PATCH] Fix documentation of nextSpanTransition off by one Improve wording of javadoc for nextSpanTransition() to accurately reflect the actual implementation. Bug: 19274845 Change-Id: I8f8fb6a21a8cbcc26fefb63164a6943431d16089 --- core/java/android/text/Spanned.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/java/android/text/Spanned.java b/core/java/android/text/Spanned.java index b4622e0cf9049..a785d1b7d2c76 100644 --- a/core/java/android/text/Spanned.java +++ b/core/java/android/text/Spanned.java @@ -187,12 +187,11 @@ extends CharSequence public int getSpanFlags(Object tag); /** - * Return the first offset greater than or equal to start - * where a markup object of class type begins or ends, - * or limit if there are no starts or ends greater than or - * equal to start but less than limit. Specify - * null or Object.class for the type if you want every - * transition regardless of type. + * Return the first offset greater than start where a markup + * object of class type begins or ends, or limit + * if there are no starts or ends greater than start but less + * than limit. Specify null or Object.class for + * the type if you want every transition regardless of type. */ public int nextSpanTransition(int start, int limit, Class type); }