From dee79d605334804118839e9f71151a7e8d1ad27b Mon Sep 17 00:00:00 2001 From: Vipin Sharma Date: Wed, 25 Nov 2020 16:01:40 +0000 Subject: 8253936: Replace ... with {@code ...} for java.sql Reviewed-by: lancea --- .../classes/java/sql/SQLClientInfoException.java | 118 ++++++++++----------- 1 file changed, 59 insertions(+), 59 deletions(-) (limited to 'src/java.sql/share/classes/java/sql/SQLClientInfoException.java') diff --git a/src/java.sql/share/classes/java/sql/SQLClientInfoException.java b/src/java.sql/share/classes/java/sql/SQLClientInfoException.java index 5ca41661b47..59a479b8056 100644 --- a/src/java.sql/share/classes/java/sql/SQLClientInfoException.java +++ b/src/java.sql/share/classes/java/sql/SQLClientInfoException.java @@ -28,18 +28,18 @@ import java.util.Map; /** * The subclass of {@link SQLException} is thrown when one or more client info properties - * could not be set on a Connection. In addition to the information provided - * by SQLException, a SQLClientInfoException provides a list of client info + * could not be set on a {@code Connection}. In addition to the information provided + * by {@code SQLException}, a {@code SQLClientInfoException} provides a list of client info * properties that were not set. * * Some databases do not allow multiple client info properties to be set * atomically. For those databases, it is possible that some of the client - * info properties had been set even though the Connection.setClientInfo - * method threw an exception. An application can use the getFailedProperties + * info properties had been set even though the {@code Connection.setClientInfo} + * method threw an exception. An application can use the {@code getFailedProperties} * method to retrieve a list of client info properties that were not set. The * properties are identified by passing a - * Map<String,ClientInfoStatus> to - * the appropriate SQLClientInfoException constructor. + * {@code Map} to + * the appropriate {@code SQLClientInfoException} constructor. * * @see ClientInfoStatus * @see Connection#setClientInfo @@ -54,11 +54,11 @@ public class SQLClientInfoException extends SQLException { private Map failedProperties; /** - * Constructs a SQLClientInfoException Object. - * The reason, - * SQLState, and failedProperties list are initialized to - * null and the vendor code is initialized to 0. - * The cause is not initialized, and may subsequently be + * Constructs a {@code SQLClientInfoException} Object. + * The {@code reason}, + * {@code SQLState}, and failedProperties list are initialized to + * {@code null} and the vendor code is initialized to 0. + * The {@code cause} is not initialized, and may subsequently be * initialized by a call to the * {@link Throwable#initCause(java.lang.Throwable)} method. * @@ -70,12 +70,12 @@ public class SQLClientInfoException extends SQLException { } /** - * Constructs a SQLClientInfoException object initialized with a - * given failedProperties. - * The reason and SQLState are initialized - * to null and the vendor code is initialized to 0. + * Constructs a {@code SQLClientInfoException} object initialized with a + * given {@code failedProperties}. + * The {@code reason} and {@code SQLState} are initialized + * to {@code null} and the vendor code is initialized to 0. * - * The cause is not initialized, and may subsequently be + * The {@code cause} is not initialized, and may subsequently be * initialized by a call to the * {@link Throwable#initCause(java.lang.Throwable)} method. * @@ -84,7 +84,7 @@ public class SQLClientInfoException extends SQLException { * contain the names of the client info * properties that could not be set and * the values contain one of the reason codes - * defined in ClientInfoStatus + * defined in {@code ClientInfoStatus} * * @since 1.6 */ @@ -94,20 +94,20 @@ public class SQLClientInfoException extends SQLException { } /** - * Constructs a SQLClientInfoException object initialized with - * a given cause and failedProperties. + * Constructs a {@code SQLClientInfoException} object initialized with + * a given {@code cause} and {@code failedProperties}. * - * The reason is initialized to null if - * cause==null or to cause.toString() if - * cause!=null and the vendor code is initialized to 0. + * The {@code reason} is initialized to {@code null} if + * {@code cause==null} or to {@code cause.toString()} if + * {@code cause!=null} and the vendor code is initialized to 0. * * @param failedProperties A Map containing the property values that could not * be set. The keys in the Map * contain the names of the client info * properties that could not be set and * the values contain one of the reason codes - * defined in ClientInfoStatus - * @param cause the (which is saved for later retrieval by the getCause() method); may be null indicating + * defined in {@code ClientInfoStatus} + * @param cause the (which is saved for later retrieval by the {@code getCause()} method); may be null indicating * the cause is non-existent or unknown. * * @since 1.6 @@ -121,12 +121,12 @@ public class SQLClientInfoException extends SQLException { } /** - * Constructs a SQLClientInfoException object initialized with a - * given reason and failedProperties. - * The SQLState is initialized - * to null and the vendor code is initialized to 0. + * Constructs a {@code SQLClientInfoException} object initialized with a + * given {@code reason} and {@code failedProperties}. + * The {@code SQLState} is initialized + * to {@code null} and the vendor code is initialized to 0. * - * The cause is not initialized, and may subsequently be + * The {@code cause} is not initialized, and may subsequently be * initialized by a call to the * {@link Throwable#initCause(java.lang.Throwable)} method. * @@ -136,7 +136,7 @@ public class SQLClientInfoException extends SQLException { * contain the names of the client info * properties that could not be set and * the values contain one of the reason codes - * defined in ClientInfoStatus + * defined in {@code ClientInfoStatus} * * @since 1.6 */ @@ -148,11 +148,11 @@ public class SQLClientInfoException extends SQLException { } /** - * Constructs a SQLClientInfoException object initialized with a - * given reason, cause and - * failedProperties. - * The SQLState is initialized - * to null and the vendor code is initialized to 0. + * Constructs a {@code SQLClientInfoException} object initialized with a + * given {@code reason}, {@code cause} and + * {@code failedProperties}. + * The {@code SQLState} is initialized + * to {@code null} and the vendor code is initialized to 0. * * @param reason a description of the exception * @param failedProperties A Map containing the property values that could not @@ -160,8 +160,8 @@ public class SQLClientInfoException extends SQLException { * contain the names of the client info * properties that could not be set and * the values contain one of the reason codes - * defined in ClientInfoStatus - * @param cause the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating + * defined in {@code ClientInfoStatus} + * @param cause the underlying reason for this {@code SQLException} (which is saved for later retrieval by the {@code getCause()} method); may be null indicating * the cause is non-existent or unknown. * * @since 1.6 @@ -176,10 +176,10 @@ public class SQLClientInfoException extends SQLException { } /** - * Constructs a SQLClientInfoException object initialized with a - * given reason, SQLState and - * failedProperties. - * The cause is not initialized, and may subsequently be + * Constructs a {@code SQLClientInfoException} object initialized with a + * given {@code reason}, {@code SQLState} and + * {@code failedProperties}. + * The {@code cause} is not initialized, and may subsequently be * initialized by a call to the * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code * is initialized to 0. @@ -191,7 +191,7 @@ public class SQLClientInfoException extends SQLException { * contain the names of the client info * properties that could not be set and * the values contain one of the reason codes - * defined in ClientInfoStatus + * defined in {@code ClientInfoStatus} * * @since 1.6 */ @@ -204,9 +204,9 @@ public class SQLClientInfoException extends SQLException { } /** - * Constructs a SQLClientInfoException object initialized with a - * given reason, SQLState, cause - * and failedProperties. The vendor code is initialized to 0. + * Constructs a {@code SQLClientInfoException} object initialized with a + * given {@code reason}, {@code SQLState}, {@code cause} + * and {@code failedProperties}. The vendor code is initialized to 0. * * @param reason a description of the exception * @param SQLState an XOPEN or SQL:2003 code identifying the exception @@ -215,8 +215,8 @@ public class SQLClientInfoException extends SQLException { * contain the names of the client info * properties that could not be set and * the values contain one of the reason codes - * defined in ClientInfoStatus - * @param cause the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating + * defined in {@code ClientInfoStatus} + * @param cause the underlying reason for this {@code SQLException} (which is saved for later retrieval by the {@code getCause()} method); may be null indicating * the cause is non-existent or unknown. * * @since 1.6 @@ -232,10 +232,10 @@ public class SQLClientInfoException extends SQLException { } /** - * Constructs a SQLClientInfoException object initialized with a - * given reason, SQLState, - * vendorCode and failedProperties. - * The cause is not initialized, and may subsequently be + * Constructs a {@code SQLClientInfoException} object initialized with a + * given {@code reason}, {@code SQLState}, + * {@code vendorCode} and {@code failedProperties}. + * The {@code cause} is not initialized, and may subsequently be * initialized by a call to the * {@link Throwable#initCause(java.lang.Throwable)} method. * @@ -247,7 +247,7 @@ public class SQLClientInfoException extends SQLException { * contain the names of the client info * properties that could not be set and * the values contain one of the reason codes - * defined in ClientInfoStatus + * defined in {@code ClientInfoStatus} * * @since 1.6 */ @@ -261,10 +261,10 @@ public class SQLClientInfoException extends SQLException { } /** - * Constructs a SQLClientInfoException object initialized with a - * given reason, SQLState, - * cause, vendorCode and - * failedProperties. + * Constructs a {@code SQLClientInfoException} object initialized with a + * given {@code reason}, {@code SQLState}, + * {@code cause}, {@code vendorCode} and + * {@code failedProperties}. * * @param reason a description of the exception * @param SQLState an XOPEN or SQL:2003 code identifying the exception @@ -274,8 +274,8 @@ public class SQLClientInfoException extends SQLException { * contain the names of the client info * properties that could not be set and * the values contain one of the reason codes - * defined in ClientInfoStatus - * @param cause the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating + * defined in {@code ClientInfoStatus} + * @param cause the underlying reason for this {@code SQLException} (which is saved for later retrieval by the {@code getCause()} method); may be null indicating * the cause is non-existent or unknown. * * @since 1.6 @@ -295,7 +295,7 @@ public class SQLClientInfoException extends SQLException { * Returns the list of client info properties that could not be set. The * keys in the Map contain the names of the client info * properties that could not be set and the values contain one of the - * reason codes defined in ClientInfoStatus + * reason codes defined in {@code ClientInfoStatus} * * @return Map list containing the client info properties that could * not be set -- cgit v1.3.1