summaryrefslogtreecommitdiff
path: root/src/java.sql/share/classes/java/sql/Date.java
diff options
context:
space:
mode:
authorVipin Sharma <vsharma@openjdk.org>2020-10-02 14:50:53 +0000
committerLance Andersen <lancea@openjdk.org>2020-10-02 14:50:53 +0000
commitdffe9db25c19a7e99d3d35c535197bf7e4c15c8a (patch)
tree2f215db9c5d943ca9668d364dbacf994194876c8 /src/java.sql/share/classes/java/sql/Date.java
parent406db1c270a69868b415362d49202c790da27c70 (diff)
downloadopenjdk-dffe9db25c19a7e99d3d35c535197bf7e4c15c8a.tar.gz
openjdk-dffe9db25c19a7e99d3d35c535197bf7e4c15c8a.zip
8252537: Updated @exception with @throws
8252536: Replace @exception with @throws for core-libs 8252539: Replace @exception with @throws java.rmi.activation package 8252540: Replace @exception with @throws java.rmi.registry package 8252541: Replace @exception with @throws java.rmi.server package Reviewed-by: rriggs, sspitsyn, lancea
Diffstat (limited to 'src/java.sql/share/classes/java/sql/Date.java')
-rw-r--r--src/java.sql/share/classes/java/sql/Date.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/java.sql/share/classes/java/sql/Date.java b/src/java.sql/share/classes/java/sql/Date.java
index f8da3e7f94b..1512ea8b684 100644
--- a/src/java.sql/share/classes/java/sql/Date.java
+++ b/src/java.sql/share/classes/java/sql/Date.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -194,7 +194,7 @@ public class Date extends java.util.Date {
* values do not have a time component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this method is invoked
+ * @throws java.lang.IllegalArgumentException if this method is invoked
* @see #setHours
*/
@Deprecated(since="1.2")
@@ -207,7 +207,7 @@ public class Date extends java.util.Date {
* values do not have a time component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this method is invoked
+ * @throws java.lang.IllegalArgumentException if this method is invoked
* @see #setMinutes
*/
@Deprecated(since="1.2")
@@ -220,7 +220,7 @@ public class Date extends java.util.Date {
* values do not have a time component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this method is invoked
+ * @throws java.lang.IllegalArgumentException if this method is invoked
* @see #setSeconds
*/
@Deprecated(since="1.2")
@@ -233,7 +233,7 @@ public class Date extends java.util.Date {
* values do not have a time component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this method is invoked
+ * @throws java.lang.IllegalArgumentException if this method is invoked
* @see #getHours
*/
@Deprecated(since="1.2")
@@ -246,7 +246,7 @@ public class Date extends java.util.Date {
* values do not have a time component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this method is invoked
+ * @throws java.lang.IllegalArgumentException if this method is invoked
* @see #getMinutes
*/
@Deprecated(since="1.2")
@@ -259,7 +259,7 @@ public class Date extends java.util.Date {
* values do not have a time component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this method is invoked
+ * @throws java.lang.IllegalArgumentException if this method is invoked
* @see #getSeconds
*/
@Deprecated(since="1.2")
@@ -283,7 +283,7 @@ public class Date extends java.util.Date {
*
* @param date a {@code LocalDate} to convert
* @return a {@code Date} object
- * @exception NullPointerException if {@code date} is null
+ * @throws NullPointerException if {@code date} is null
* @since 1.8
*/
@SuppressWarnings("deprecation")
@@ -309,7 +309,7 @@ public class Date extends java.util.Date {
* not be used because SQL {@code Date} values do not have a time
* component.
*
- * @exception java.lang.UnsupportedOperationException if this method is invoked
+ * @throws java.lang.UnsupportedOperationException if this method is invoked
*/
@Override
public Instant toInstant() {