summaryrefslogtreecommitdiff
path: root/src/java.sql/share/classes/java/sql/Time.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/Time.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/Time.java')
-rw-r--r--src/java.sql/share/classes/java/sql/Time.java34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/java.sql/share/classes/java/sql/Time.java b/src/java.sql/share/classes/java/sql/Time.java
index 281d031c7c1..7292d7a5573 100644
--- a/src/java.sql/share/classes/java/sql/Time.java
+++ b/src/java.sql/share/classes/java/sql/Time.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
@@ -140,8 +140,8 @@ public class Time extends java.util.Date {
* values do not have a year component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this
- * method is invoked
+ * @throws java.lang.IllegalArgumentException if this
+ * method is invoked
* @see #setYear
*/
@Deprecated(since="1.2")
@@ -154,8 +154,8 @@ public class Time extends java.util.Date {
* values do not have a month component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this
- * method is invoked
+ * @throws java.lang.IllegalArgumentException if this
+ * method is invoked
* @see #setMonth
*/
@Deprecated(since="1.2")
@@ -168,8 +168,8 @@ public class Time extends java.util.Date {
* values do not have a day component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this
- * method is invoked
+ * @throws java.lang.IllegalArgumentException if this
+ * method is invoked
*/
@Deprecated(since="1.2")
public int getDay() {
@@ -181,8 +181,8 @@ public class Time extends java.util.Date {
* values do not have a date component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this
- * method is invoked
+ * @throws java.lang.IllegalArgumentException if this
+ * method is invoked
* @see #setDate
*/
@Deprecated(since="1.2")
@@ -195,8 +195,8 @@ public class Time extends java.util.Date {
* values do not have a year component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this
- * method is invoked
+ * @throws java.lang.IllegalArgumentException if this
+ * method is invoked
* @see #getYear
*/
@Deprecated(since="1.2")
@@ -209,8 +209,8 @@ public class Time extends java.util.Date {
* values do not have a month component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this
- * method is invoked
+ * @throws java.lang.IllegalArgumentException if this
+ * method is invoked
* @see #getMonth
*/
@Deprecated(since="1.2")
@@ -223,8 +223,8 @@ public class Time extends java.util.Date {
* values do not have a date component.
*
* @deprecated
- * @exception java.lang.IllegalArgumentException if this
- * method is invoked
+ * @throws java.lang.IllegalArgumentException if this
+ * method is invoked
* @see #getDate
*/
@Deprecated(since="1.2")
@@ -246,7 +246,7 @@ public class Time extends java.util.Date {
*
* @param time a {@code LocalTime} to convert
* @return a {@code Time} object
- * @exception NullPointerException if {@code time} is null
+ * @throws NullPointerException if {@code time} is null
* @since 1.8
*/
@SuppressWarnings("deprecation")
@@ -274,7 +274,7 @@ public class Time extends java.util.Date {
* not be used because SQL {@code Time} values do not have a date
* component.
*
- * @exception java.lang.UnsupportedOperationException if this method is invoked
+ * @throws java.lang.UnsupportedOperationException if this method is invoked
*/
@Override
public Instant toInstant() {