Skip to content

Commit dee79d6

Browse files
Vipin SharmaLance Andersen
authored andcommitted
8253936: Replace <code>...</code> with {@code ...} for java.sql
Reviewed-by: lancea
1 parent cfb175d commit dee79d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+4698
-4698
lines changed

src/java.sql/share/classes/java/sql/Array.java

Lines changed: 90 additions & 90 deletions
Large diffs are not rendered by default.

src/java.sql/share/classes/java/sql/BatchUpdateException.java

Lines changed: 106 additions & 106 deletions
Large diffs are not rendered by default.

src/java.sql/share/classes/java/sql/CallableStatement.java

Lines changed: 509 additions & 509 deletions
Large diffs are not rendered by default.

src/java.sql/share/classes/java/sql/ClientInfoStatus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -29,7 +29,7 @@
2929

3030
/**
3131
* Enumeration for status of the reason that a property could not be set
32-
* via a call to <code>Connection.setClientInfo</code>
32+
* via a call to {@code Connection.setClientInfo}
3333
* @since 1.6
3434
*/
3535

src/java.sql/share/classes/java/sql/Connection.java

Lines changed: 313 additions & 313 deletions
Large diffs are not rendered by default.

src/java.sql/share/classes/java/sql/DataTruncation.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,29 +26,29 @@
2626
package java.sql;
2727

2828
/**
29-
* An exception thrown as a <code>DataTruncation</code> exception
29+
* An exception thrown as a {@code DataTruncation} exception
3030
* (on writes) or reported as a
31-
* <code>DataTruncation</code> warning (on reads)
31+
* {@code DataTruncation} warning (on reads)
3232
* when a data values is unexpectedly truncated for reasons other than its having
33-
* exceeded <code>MaxFieldSize</code>.
33+
* exceeded {@code MaxFieldSize}.
3434
*
35-
* <P>The SQLstate for a <code>DataTruncation</code> during read is <code>01004</code>.
36-
* <P>The SQLstate for a <code>DataTruncation</code> during write is <code>22001</code>.
35+
* <P>The SQLstate for a {@code DataTruncation} during read is {@code 01004}.
36+
* <P>The SQLstate for a {@code DataTruncation} during write is {@code 22001}.
3737
*
3838
* @since 1.1
3939
*/
4040

4141
public class DataTruncation extends SQLWarning {
4242

4343
/**
44-
* Creates a <code>DataTruncation</code> object
44+
* Creates a {@code DataTruncation} object
4545
* with the SQLState initialized
46-
* to 01004 when <code>read</code> is set to <code>true</code> and 22001
47-
* when <code>read</code> is set to <code>false</code>,
46+
* to 01004 when {@code read} is set to {@code true} and 22001
47+
* when {@code read} is set to {@code false},
4848
* the reason set to "Data truncation", the
4949
* vendor code set to 0, and
5050
* the other fields set to the given values.
51-
* The <code>cause</code> is not initialized, and may subsequently be
51+
* The {@code cause} is not initialized, and may subsequently be
5252
* initialized by a call to the
5353
* {@link Throwable#initCause(java.lang.Throwable)} method.
5454
*
@@ -71,10 +71,10 @@ public DataTruncation(int index, boolean parameter,
7171
}
7272

7373
/**
74-
* Creates a <code>DataTruncation</code> object
74+
* Creates a {@code DataTruncation} object
7575
* with the SQLState initialized
76-
* to 01004 when <code>read</code> is set to <code>true</code> and 22001
77-
* when <code>read</code> is set to <code>false</code>,
76+
* to 01004 when {@code read} is set to {@code true} and 22001
77+
* when {@code read} is set to {@code false},
7878
* the reason set to "Data truncation", the
7979
* vendor code set to 0, and
8080
* the other fields set to the given values.
@@ -84,8 +84,8 @@ public DataTruncation(int index, boolean parameter,
8484
* @param read true if a read was truncated
8585
* @param dataSize the original size of the data
8686
* @param transferSize the size after truncation
87-
* @param cause the underlying reason for this <code>DataTruncation</code>
88-
* (which is saved for later retrieval by the <code>getCause()</code> method);
87+
* @param cause the underlying reason for this {@code DataTruncation}
88+
* (which is saved for later retrieval by the {@code getCause()} method);
8989
* may be null indicating the cause is non-existent or unknown.
9090
*
9191
* @since 1.6
@@ -105,7 +105,7 @@ public DataTruncation(int index, boolean parameter,
105105
* Retrieves the index of the column or parameter that was truncated.
106106
*
107107
* <P>This may be -1 if the column or parameter index is unknown, in
108-
* which case the <code>parameter</code> and <code>read</code> fields should be ignored.
108+
* which case the {@code parameter} and {@code read} fields should be ignored.
109109
*
110110
* @return the index of the truncated parameter or column value
111111
*/
@@ -117,8 +117,8 @@ public int getIndex() {
117117
* Indicates whether the value truncated was a parameter value or
118118
* a column value.
119119
*
120-
* @return <code>true</code> if the value truncated was a parameter;
121-
* <code>false</code> if it was a column value
120+
* @return {@code true} if the value truncated was a parameter;
121+
* {@code false} if it was a column value
122122
*/
123123
public boolean getParameter() {
124124
return parameter;
@@ -127,8 +127,8 @@ public boolean getParameter() {
127127
/**
128128
* Indicates whether or not the value was truncated on a read.
129129
*
130-
* @return <code>true</code> if the value was truncated when read from
131-
* the database; <code>false</code> if the data was truncated on a write
130+
* @return {@code true} if the value was truncated when read from
131+
* the database; {@code false} if the data was truncated on a write
132132
*/
133133
public boolean getRead() {
134134
return read;
@@ -137,7 +137,7 @@ public boolean getRead() {
137137
/**
138138
* Gets the number of bytes of data that should have been transferred.
139139
* This number may be approximate if data conversions were being
140-
* performed. The value may be <code>-1</code> if the size is unknown.
140+
* performed. The value may be {@code -1} if the size is unknown.
141141
*
142142
* @return the number of bytes of data that should have been transferred
143143
*/
@@ -147,7 +147,7 @@ public int getDataSize() {
147147

148148
/**
149149
* Gets the number of bytes of data actually transferred.
150-
* The value may be <code>-1</code> if the size is unknown.
150+
* The value may be {@code -1} if the size is unknown.
151151
*
152152
* @return the number of bytes of data actually transferred
153153
*/

0 commit comments

Comments
 (0)