提交 f698a8d9 编写于 作者: S smarks

7170938: (str) incorrect wording in doc for String.subSequence

Reviewed-by: forax, mduigou
Contributed-by: NJoe Bowbeer <joe.bowbeer@gmail.com>
上级 1266c188
...@@ -1921,17 +1921,17 @@ public final class String ...@@ -1921,17 +1921,17 @@ public final class String
* <blockquote><pre> * <blockquote><pre>
* str.substring(begin,&nbsp;end)</pre></blockquote> * str.substring(begin,&nbsp;end)</pre></blockquote>
* *
* This method is defined so that the <tt>String</tt> class can implement * This method is defined so that the {@code String} class can implement
* the {@link CharSequence} interface. </p> * the {@link CharSequence} interface. </p>
* *
* @param beginIndex the begin index, inclusive. * @param beginIndex the begin index, inclusive.
* @param endIndex the end index, exclusive. * @param endIndex the end index, exclusive.
* @return the specified subsequence. * @return the specified subsequence.
* *
* @throws IndexOutOfBoundsException * @throws IndexOutOfBoundsException
* if <tt>beginIndex</tt> or <tt>endIndex</tt> are negative, * if {@code beginIndex} or {@code endIndex} is negative,
* if <tt>endIndex</tt> is greater than <tt>length()</tt>, * if {@code endIndex} is greater than {@code length()},
* or if <tt>beginIndex</tt> is greater than <tt>startIndex</tt> * or if {@code beginIndex} is greater than {@code endIndex}
* *
* @since 1.4 * @since 1.4
* @spec JSR-51 * @spec JSR-51
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册