mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8230648: Replace @exception tag with @throws in java.base
Minor coding style update of javadoc tag in any file in java.base Reviewed-by: prappo, lancea
This commit is contained in:
parent
2fc6c6459d
commit
b15b322cf3
196 changed files with 1959 additions and 1962 deletions
|
@ -702,7 +702,7 @@ public final class String
|
|||
* @param index the index of the {@code char} value.
|
||||
* @return the {@code char} value at the specified index of this string.
|
||||
* The first {@code char} value is at index {@code 0}.
|
||||
* @exception IndexOutOfBoundsException if the {@code index}
|
||||
* @throws IndexOutOfBoundsException if the {@code index}
|
||||
* argument is negative or not less than the length of this
|
||||
* string.
|
||||
*/
|
||||
|
@ -731,7 +731,7 @@ public final class String
|
|||
* @param index the index to the {@code char} values
|
||||
* @return the code point value of the character at the
|
||||
* {@code index}
|
||||
* @exception IndexOutOfBoundsException if the {@code index}
|
||||
* @throws IndexOutOfBoundsException if the {@code index}
|
||||
* argument is negative or not less than the length of this
|
||||
* string.
|
||||
* @since 1.5
|
||||
|
@ -763,7 +763,7 @@ public final class String
|
|||
*
|
||||
* @param index the index following the code point that should be returned
|
||||
* @return the Unicode code point value before the given index.
|
||||
* @exception IndexOutOfBoundsException if the {@code index}
|
||||
* @throws IndexOutOfBoundsException if the {@code index}
|
||||
* argument is less than 1 or greater than the length
|
||||
* of this string.
|
||||
* @since 1.5
|
||||
|
@ -794,7 +794,7 @@ public final class String
|
|||
* the text range.
|
||||
* @return the number of Unicode code points in the specified text
|
||||
* range
|
||||
* @exception IndexOutOfBoundsException if the
|
||||
* @throws IndexOutOfBoundsException if the
|
||||
* {@code beginIndex} is negative, or {@code endIndex}
|
||||
* is larger than the length of this {@code String}, or
|
||||
* {@code beginIndex} is larger than {@code endIndex}.
|
||||
|
@ -821,7 +821,7 @@ public final class String
|
|||
* @param index the index to be offset
|
||||
* @param codePointOffset the offset in code points
|
||||
* @return the index within this {@code String}
|
||||
* @exception IndexOutOfBoundsException if {@code index}
|
||||
* @throws IndexOutOfBoundsException if {@code index}
|
||||
* is negative or larger then the length of this
|
||||
* {@code String}, or if {@code codePointOffset} is positive
|
||||
* and the substring starting with {@code index} has fewer
|
||||
|
@ -858,7 +858,7 @@ public final class String
|
|||
* to copy.
|
||||
* @param dst the destination array.
|
||||
* @param dstBegin the start offset in the destination array.
|
||||
* @exception IndexOutOfBoundsException If any of the following
|
||||
* @throws IndexOutOfBoundsException If any of the following
|
||||
* is true:
|
||||
* <ul><li>{@code srcBegin} is negative.
|
||||
* <li>{@code srcBegin} is greater than {@code srcEnd}
|
||||
|
@ -1867,7 +1867,7 @@ public final class String
|
|||
*
|
||||
* @param beginIndex the beginning index, inclusive.
|
||||
* @return the specified substring.
|
||||
* @exception IndexOutOfBoundsException if
|
||||
* @throws IndexOutOfBoundsException if
|
||||
* {@code beginIndex} is negative or larger than the
|
||||
* length of this {@code String} object.
|
||||
*/
|
||||
|
@ -1890,7 +1890,7 @@ public final class String
|
|||
* @param beginIndex the beginning index, inclusive.
|
||||
* @param endIndex the ending index, exclusive.
|
||||
* @return the specified substring.
|
||||
* @exception IndexOutOfBoundsException if the
|
||||
* @throws IndexOutOfBoundsException if the
|
||||
* {@code beginIndex} is negative, or
|
||||
* {@code endIndex} is larger than the length of
|
||||
* this {@code String} object, or
|
||||
|
@ -3374,7 +3374,7 @@ public final class String
|
|||
* @param count length of the subarray.
|
||||
* @return a {@code String} that contains the characters of the
|
||||
* specified subarray of the character array.
|
||||
* @exception IndexOutOfBoundsException if {@code offset} is
|
||||
* @throws IndexOutOfBoundsException if {@code offset} is
|
||||
* negative, or {@code count} is negative, or
|
||||
* {@code offset+count} is larger than
|
||||
* {@code data.length}.
|
||||
|
@ -3391,7 +3391,7 @@ public final class String
|
|||
* @param count length of the subarray.
|
||||
* @return a {@code String} that contains the characters of the
|
||||
* specified subarray of the character array.
|
||||
* @exception IndexOutOfBoundsException if {@code offset} is
|
||||
* @throws IndexOutOfBoundsException if {@code offset} is
|
||||
* negative, or {@code count} is negative, or
|
||||
* {@code offset+count} is larger than
|
||||
* {@code data.length}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue