From dffe9db25c19a7e99d3d35c535197bf7e4c15c8a Mon Sep 17 00:00:00 2001 From: Vipin Sharma Date: Fri, 2 Oct 2020 14:50:53 +0000 Subject: 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 --- src/java.sql/share/classes/java/sql/Time.java | 34 +++++++++++++-------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/java.sql/share/classes/java/sql/Time.java') 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() { -- cgit v1.3.1