src/share/classes/java/lang/AbstractStringBuilder.java
Print this page
rev 6294 : 8005118: Javadoc styles are inconsistent
Summary: use a common javadoc style in the String classes
Reviewed-by: darcy
*** 858,870 ****
* @param start the start index, inclusive.
* @param end the end index, exclusive.
* @return the specified subsequence.
*
* @throws IndexOutOfBoundsException
! * if <tt>start</tt> or <tt>end</tt> are negative,
! * if <tt>end</tt> is greater than <tt>length()</tt>,
! * or if <tt>start</tt> is greater than <tt>end</tt>
* @spec JSR-51
*/
@Override
public CharSequence subSequence(int start, int end) {
return substring(start, end);
--- 858,870 ----
* @param start the start index, inclusive.
* @param end the end index, exclusive.
* @return the specified subsequence.
*
* @throws IndexOutOfBoundsException
! * if {@code start} or {@code end} are negative,
! * if {@code end} is greater than {@code length()},
! * or if {@code start} is greater than {@code end}
* @spec JSR-51
*/
@Override
public CharSequence subSequence(int start, int end) {
return substring(start, end);
*** 1290,1300 ****
}
/**
* Returns the index within this string of the first occurrence of the
* specified substring, starting at the specified index. The integer
! * returned is the smallest value <tt>k</tt> for which:
* <blockquote><pre>
* k >= Math.min(fromIndex, str.length()) &&
* this.toString().startsWith(str, k)
* </pre></blockquote>
* If no such value of <i>k</i> exists, then -1 is returned.
--- 1290,1300 ----
}
/**
* Returns the index within this string of the first occurrence of the
* specified substring, starting at the specified index. The integer
! * returned is the smallest value {@code k} for which:
* <blockquote><pre>
* k >= Math.min(fromIndex, str.length()) &&
* this.toString().startsWith(str, k)
* </pre></blockquote>
* If no such value of <i>k</i> exists, then -1 is returned.
*** 1416,1426 ****
*/
@Override
public abstract String toString();
/**
! * Needed by <tt>String</tt> for the contentEquals method.
*/
final char[] getValue() {
return value;
}
--- 1416,1426 ----
*/
@Override
public abstract String toString();
/**
! * Needed by {@code String} for the contentEquals method.
*/
final char[] getValue() {
return value;
}