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 --- .../SQLIntegrityConstraintViolationException.java | 72 +++++++++++----------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'src/java.sql/share/classes/java/sql/SQLIntegrityConstraintViolationException.java') diff --git a/src/java.sql/share/classes/java/sql/SQLIntegrityConstraintViolationException.java b/src/java.sql/share/classes/java/sql/SQLIntegrityConstraintViolationException.java index 3a6b1cc1f0f..2844fbd6cff 100644 --- a/src/java.sql/share/classes/java/sql/SQLIntegrityConstraintViolationException.java +++ b/src/java.sql/share/classes/java/sql/SQLIntegrityConstraintViolationException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 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 @@ -32,17 +32,17 @@ package java.sql; * constraint (foreign key, primary key or unique key) has been violated. *

* Please consult your driver vendor documentation for the vendor-specified - * conditions for which this Exception may be thrown. + * conditions for which this {@code Exception} may be thrown. * @since 1.6 */ public class SQLIntegrityConstraintViolationException extends SQLNonTransientException { /** - * Constructs a SQLIntegrityConstraintViolationException object. - * The reason, SQLState are initialized - * to null and the vendor code is initialized to 0. + * Constructs a {@code SQLIntegrityConstraintViolationException} object. + * The {@code reason}, {@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. * @@ -53,12 +53,12 @@ public class SQLIntegrityConstraintViolationException extends SQLNonTransientExc } /** - * Constructs a SQLIntegrityConstraintViolationException - * with a given reason. The SQLState - * is initialized to null and the vendor code is initialized + * Constructs a {@code SQLIntegrityConstraintViolationException} + * with a given {@code reason}. 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. * @@ -70,10 +70,10 @@ public class SQLIntegrityConstraintViolationException extends SQLNonTransientExc } /** - * Constructs a SQLIntegrityConstraintViolationException - * object with a given reason and SQLState. + * Constructs a {@code SQLIntegrityConstraintViolationException} + * object with a given {@code reason} and {@code SQLState}. * - * 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. The vendor code * is initialized to 0. @@ -87,11 +87,11 @@ public class SQLIntegrityConstraintViolationException extends SQLNonTransientExc } /** - * Constructs a SQLIntegrityConstraintViolationException object - * with a given reason, SQLState and - * vendorCode. + * Constructs a {@code SQLIntegrityConstraintViolationException} object + * with a given {@code reason}, {@code SQLState} and + * {@code vendorCode}. * - * 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. * @@ -105,15 +105,15 @@ public class SQLIntegrityConstraintViolationException extends SQLNonTransientExc } /** - * Constructs an SQLIntegrityConstraintViolationException object with - * a given cause. - * The SQLState is initialized - * to null and the vendor code is initialized to 0. - * The reason is initialized to null if - * cause==null or to cause.toString() if - * cause!=null. + * Constructs an {@code SQLIntegrityConstraintViolationException} object with + * a given {@code cause}. + * The {@code SQLState} is initialized + * to {@code 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}. * - * @param cause the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating + * @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 */ @@ -122,14 +122,14 @@ public class SQLIntegrityConstraintViolationException extends SQLNonTransientExc } /** - * Constructs a SQLIntegrityConstraintViolationException object + * Constructs a {@code SQLIntegrityConstraintViolationException} object * with a given - * reason and cause. - * The SQLState is initialized to null + * {@code reason} and {@code cause}. + * The {@code SQLState} is initialized to {@code null} * and the vendor code is initialized to 0. * * @param reason a description of the exception. - * @param cause the (which is saved for later retrieval by the getCause() method); may be null indicating + * @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 */ @@ -138,14 +138,14 @@ public class SQLIntegrityConstraintViolationException extends SQLNonTransientExc } /** - * Constructs a SQLIntegrityConstraintViolationException object + * Constructs a {@code SQLIntegrityConstraintViolationException} object * with a given - * reason, SQLState and cause. + * {@code reason}, {@code SQLState} and {@code cause}. * 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 - * @param cause the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating + * @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 */ @@ -154,15 +154,15 @@ public class SQLIntegrityConstraintViolationException extends SQLNonTransientExc } /** - * Constructs a SQLIntegrityConstraintViolationException object + * Constructs a {@code SQLIntegrityConstraintViolationException} object * with a given - * reason, SQLState, vendorCode - * and cause. + * {@code reason}, {@code SQLState}, {@code vendorCode} + * and {@code cause}. * * @param reason a description of the exception * @param SQLState an XOPEN or SQL:2003 code identifying the exception * @param vendorCode a database vendor-specific exception code - * @param cause the (which is saved for later retrieval by the getCause() method); may be null indicating + * @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 */ -- cgit v1.3.1