diff -r 33de7752835c -r 94bb65cb37d3 src/java.base/share/classes/java/util/GregorianCalendar.java
--- a/src/java.base/share/classes/java/util/GregorianCalendar.java Fri Sep 20 11:33:30 2019 +0800
+++ b/src/java.base/share/classes/java/util/GregorianCalendar.java Fri Sep 20 11:07:52 2019 +0100
@@ -904,7 +904,7 @@
*
* @param field the calendar field.
* @param amount the amount of date or time to be added to the field.
- * @exception IllegalArgumentException if field
is
+ * @throws IllegalArgumentException if field
is
* ZONE_OFFSET
, DST_OFFSET
, or unknown,
* or if any calendar fields have out-of-range values in
* non-lenient mode.
@@ -1101,7 +1101,7 @@
*
* @param up indicates if the value of the specified calendar field is to be
* rolled up or rolled down. Use true
if rolling up, false
otherwise.
- * @exception IllegalArgumentException if field
is
+ * @throws IllegalArgumentException if field
is
* ZONE_OFFSET
, DST_OFFSET
, or unknown,
* or if any calendar fields have out-of-range values in
* non-lenient mode.
@@ -1148,7 +1148,7 @@
*
* @param field the calendar field.
* @param amount the signed amount to add to field
.
- * @exception IllegalArgumentException if field
is
+ * @throws IllegalArgumentException if field
is
* ZONE_OFFSET
, DST_OFFSET
, or unknown,
* or if any calendar fields have out-of-range values in
* non-lenient mode.
@@ -2183,7 +2183,7 @@
* for the {@link #DAY_OF_WEEK DAY_OF_WEEK} field:
* {@link Calendar#SUNDAY SUNDAY}, ...,
* {@link Calendar#SATURDAY SATURDAY}.
- * @exception IllegalArgumentException
+ * @throws IllegalArgumentException
* if any of the given date specifiers is invalid,
* or if any of the calendar fields are inconsistent
* with the given date specifiers in non-lenient mode
@@ -2626,7 +2626,7 @@
* Converts calendar field values to the time value (millisecond
* offset from the Epoch).
*
- * @exception IllegalArgumentException if any calendar fields are invalid.
+ * @throws IllegalArgumentException if any calendar fields are invalid.
*/
@Override
protected void computeTime() {
@@ -3279,8 +3279,8 @@
* @param zdt the zoned date-time object to convert
* @return the gregorian calendar representing the same point on the
* time-line as the zoned date-time provided
- * @exception NullPointerException if {@code zdt} is null
- * @exception IllegalArgumentException if the zoned date-time is too
+ * @throws NullPointerException if {@code zdt} is null
+ * @throws IllegalArgumentException if the zoned date-time is too
* large to represent as a {@code GregorianCalendar}
* @since 1.8
*/