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/SQLInput.java | 116 +++++++++++----------- 1 file changed, 58 insertions(+), 58 deletions(-) (limited to 'src/java.sql/share/classes/java/sql/SQLInput.java') diff --git a/src/java.sql/share/classes/java/sql/SQLInput.java b/src/java.sql/share/classes/java/sql/SQLInput.java index b768fa95e1e..15052bd3e5e 100644 --- a/src/java.sql/share/classes/java/sql/SQLInput.java +++ b/src/java.sql/share/classes/java/sql/SQLInput.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -67,8 +67,8 @@ public interface SQLInput { * in the Java programming language. * * @return the attribute; if the value is SQL NULL, returns null - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -79,8 +79,8 @@ public interface SQLInput { * in the Java programming language. * * @return the attribute; if the value is SQL NULL, returns false - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -91,8 +91,8 @@ public interface SQLInput { * in the Java programming language. * * @return the attribute; if the value is SQL NULL, returns 0 - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -103,8 +103,8 @@ public interface SQLInput { * in the Java programming language. * * @return the attribute; if the value is SQL NULL, returns 0 - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -115,8 +115,8 @@ public interface SQLInput { * in the Java programming language. * * @return the attribute; if the value is SQL NULL, returns 0 - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -127,8 +127,8 @@ public interface SQLInput { * in the Java programming language. * * @return the attribute; if the value is SQL NULL, returns 0 - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -139,8 +139,8 @@ public interface SQLInput { * in the Java programming language. * * @return the attribute; if the value is SQL NULL, returns 0 - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -151,8 +151,8 @@ public interface SQLInput { * in the Java programming language. * * @return the attribute; if the value is SQL NULL, returns 0 - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -163,8 +163,8 @@ public interface SQLInput { * object in the Java programming language. * * @return the attribute; if the value is SQL NULL, returns null - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -175,8 +175,8 @@ public interface SQLInput { * in the Java programming language. * * @return the attribute; if the value is SQL NULL, returns null - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -186,8 +186,8 @@ public interface SQLInput { * Reads the next attribute in the stream and returns it as a java.sql.Date object. * * @return the attribute; if the value is SQL NULL, returns null - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -197,8 +197,8 @@ public interface SQLInput { * Reads the next attribute in the stream and returns it as a java.sql.Time object. * * @return the attribute; if the value is SQL NULL, returns null - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -208,8 +208,8 @@ public interface SQLInput { * Reads the next attribute in the stream and returns it as a java.sql.Timestamp object. * * @return the attribute; if the value is SQL NULL, returns null - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -219,8 +219,8 @@ public interface SQLInput { * Reads the next attribute in the stream and returns it as a stream of Unicode characters. * * @return the attribute; if the value is SQL NULL, returns null - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -230,8 +230,8 @@ public interface SQLInput { * Reads the next attribute in the stream and returns it as a stream of ASCII characters. * * @return the attribute; if the value is SQL NULL, returns null - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -242,8 +242,8 @@ public interface SQLInput { * bytes. * * @return the attribute; if the value is SQL NULL, returns null - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -272,8 +272,8 @@ public interface SQLInput { * * @return the datum at the head of the stream as an Object in the * Java programming language;null if the datum is SQL NULL - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -286,8 +286,8 @@ public interface SQLInput { * @return a Ref object representing the SQL REF value * at the head of the stream; null if the value read is * SQL NULL - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -300,8 +300,8 @@ public interface SQLInput { * @return a Blob object representing data of the SQL BLOB value * at the head of the stream; null if the value read is * SQL NULL - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -314,8 +314,8 @@ public interface SQLInput { * @return a Clob object representing data of the SQL CLOB value * at the head of the stream; null if the value read is * SQL NULL - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -328,8 +328,8 @@ public interface SQLInput { * @return an Array object representing data of the SQL * ARRAY value at the head of the stream; null * if the value read is SQL NULL - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -340,9 +340,9 @@ public interface SQLInput { * * @return true if the most recently read SQL value was SQL * NULL; false otherwise - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs * - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -355,9 +355,9 @@ public interface SQLInput { * java.net.URL object in the Java programming language. * * @return a java.net.URL object. - * @exception SQLException if a database access error occurs, - * or if a URL is malformed - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs, + * or if a URL is malformed + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.4 */ @@ -372,8 +372,8 @@ public interface SQLInput { * @return a NClob object representing data of the SQL NCLOB value * at the head of the stream; null if the value read is * SQL NULL - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.6 */ @@ -386,8 +386,8 @@ public interface SQLInput { * and LONGNVARCHAR columns. * * @return the attribute; if the value is SQL NULL, returns null - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.6 */ @@ -400,8 +400,8 @@ public interface SQLInput { * @return a SQLXML object representing data of the SQL XML value * at the head of the stream; null if the value read is * SQL NULL - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.6 */ @@ -414,8 +414,8 @@ public interface SQLInput { * @return a RowId object representing data of the SQL ROWID value * at the head of the stream; null if the value read is * SQL NULL - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.6 */ @@ -448,8 +448,8 @@ public interface SQLInput { * @param type Class representing the Java data type to convert the attribute to. * @return the attribute at the head of the stream as an {@code Object} in the * Java programming language;{@code null} if the attribute is SQL {@code NULL} - * @exception SQLException if a database access error occurs - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.8 */ -- cgit v1.3.1