diff options
| author | Julia Boes <jboes@openjdk.org> | 2019-09-20 11:07:52 +0100 |
|---|---|---|
| committer | Julia Boes <jboes@openjdk.org> | 2019-09-20 11:07:52 +0100 |
| commit | b15b322cf396287b5ae7b8e2a19205791d902fad (patch) | |
| tree | 91c03d816c53f2f39a897978fb3bcc793173ef54 /src/java.base/share/classes/java/lang/String.java | |
| parent | 2fc6c6459d4b0c7538787987ee0518b0133e790d (diff) | |
| download | openjdk-b15b322cf396287b5ae7b8e2a19205791d902fad.tar.gz openjdk-b15b322cf396287b5ae7b8e2a19205791d902fad.zip | |
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
Diffstat (limited to 'src/java.base/share/classes/java/lang/String.java')
| -rw-r--r-- | src/java.base/share/classes/java/lang/String.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/java.base/share/classes/java/lang/String.java b/src/java.base/share/classes/java/lang/String.java index 2ad6388a19c..cfbbd4178ba 100644 --- a/src/java.base/share/classes/java/lang/String.java +++ b/src/java.base/share/classes/java/lang/String.java @@ -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}. |
