Skip to content

Commit 9a4e79a

Browse files
authored
Merge pull request #21473 from pshipton/blockquote0.51
(0.51) Remove inappropriate usage of <blockquote> in javadoc
2 parents a057d80 + 812818c commit 9a4e79a

File tree

6 files changed

+45
-51
lines changed

6 files changed

+45
-51
lines changed

jcl/src/java.base/share/classes/com/ibm/jit/JITHelpers.java

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
/*[ENDIF] JAVA_SPEC_VERSION >= 9 */
3939

4040
/**
41-
* The <code>JITHelpers</code> class contains methods used by the JIT to optimize certain primitive operations.
41+
* The {@code JITHelpers} class contains methods used by the JIT to optimize certain primitive operations.
4242
*/
4343
@SuppressWarnings("javadoc")
4444
@J9UnmodifiableClass
@@ -585,13 +585,13 @@ public boolean canEncodeAsLatin1(byte[] array, int start, int length) {
585585
* offset.
586586
*
587587
* <p>This API implicitly assumes the following:
588-
* <blockquote><pre>
589-
* - s1Value != null
590-
* - s2Value != null
591-
* - 0 <= s1len <= s1Value.length * 2
592-
* - 1 <= s2len <= s2Value.length * 2
593-
* - 0 <= start < s1len
594-
* <blockquote><pre>
588+
* <ul>
589+
* <li>{@code s1Value != null}</li>
590+
* <li>{@code s2Value != null}</li>
591+
* <li>{@code 0 <= s1len <= s1Value.length * 2}</li>
592+
* <li>{@code 1 <= s2len <= s2Value.length * 2}</li>
593+
* <li>{@code 0 <= start < s1len}</li>
594+
* </ul>
595595
*
596596
* @param s1Value the source character array to search in.
597597
* @param s1len the length (in number of characters) of the source array.
@@ -631,13 +631,13 @@ public int intrinsicIndexOfStringLatin1(Object s1Value, int s1len, Object s2Valu
631631
* offset.
632632
*
633633
* <p>This API implicitly assumes the following:
634-
* <blockquote><pre>
635-
* - s1Value != null
636-
* - s2Value != null
637-
* - 0 <= s1len <= s1Value.length
638-
* - 1 <= s2len <= s2Value.length
639-
* - 0 <= start < s1len
640-
* <blockquote><pre>
634+
* <ul>
635+
* <li>{@code s1Value != null}</li>
636+
* <li>{@code s2Value != null}</li>
637+
* <li>{@code 0 <= s1len <= s1Value.length}</li>
638+
* <li>{@code 1 <= s2len <= s2Value.length}</li>
639+
* <li>{@code 0 <= start < s1len}</li>
640+
* </ul>
641641
*
642642
* @param s1Value the source character array to search in.
643643
* @param s1len the length (in number of characters) of the source array.
@@ -676,11 +676,11 @@ public int intrinsicIndexOfStringUTF16(Object s1Value, int s1len, Object s2Value
676676
* Returns the first index of the character within the source character array starting from the specified offset.
677677
*
678678
* <p>This API implicitly assumes the following:
679-
* <blockquote><pre>
680-
* - array != null
681-
* - 0 <= offset < length <= array.length * 1 (if array instanceof byte[])
682-
* - 0 <= offset < length <= array.length * 2 (if array instanceof char[])
683-
* <blockquote><pre>
679+
* <ul>
680+
* <li>{@code array != null}</li>
681+
* <li>{@code 0 <= offset < length <= array.length * 1 (if array instanceof byte[])}</li>
682+
* <li>{@code 0 <= offset < length <= array.length * 2 (if array instanceof char[])}</li>
683+
* </ul>
684684
*
685685
* @param array the source character array to search in.
686686
* @param ch the character to search for.
@@ -702,11 +702,11 @@ public int intrinsicIndexOfLatin1(Object array, byte ch, int offset, int length)
702702
* Returns the first index of the character within the source character array starting from the specified offset.
703703
*
704704
* <p>This API implicitly assumes the following:
705-
* <blockquote><pre>
706-
* - array != null
707-
* - 0 <= offset < length <= array.length * 1 (if array instanceof byte[])
708-
* - 0 <= offset < length <= array.length * 2 (if array instanceof char[])
709-
* <blockquote><pre>
705+
* <ul>
706+
* <li>{@code array != null}</li>
707+
* <li>{@code 0 <= offset < length <= array.length * 1 (if array instanceof byte[])}</li>
708+
* <li>{@code 0 <= offset < length <= array.length * 2 (if array instanceof char[])}</li>
709+
* </ul>
710710
*
711711
* @param array the source character array to search in.
712712
* @param ch the character to search for.

jcl/src/java.base/share/classes/java/lang/String.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,11 @@ static void initCompressionFlag() {
279279
* Latin1 string.
280280
*
281281
* <p>This API implicitly assumes the following:
282-
* <blockquote><pre>
283-
* - {@code length >= 0}
284-
* - {@code start >= 0}
285-
* - {@code start + length <= data.length}
286-
* <blockquote><pre>
282+
* <ul>
283+
* <li>{@code length >= 0}</li>
284+
* <li>{@code start >= 0}</li>
285+
* <li>{@code start + length <= c.length}</li>
286+
* </ul>
287287
*
288288
* @param c the array of characters to check
289289
* @param start the starting offset in the character array
@@ -4252,11 +4252,11 @@ static void initCompressionFlag() {
42524252
* Latin1 string.
42534253
*
42544254
* <p>This API implicitly assumes the following:
4255-
* <blockquote><pre>
4256-
* - {@code length >= 0}
4257-
* - {@code start >= 0}
4258-
* - {@code start + length <= data.length}
4259-
* <blockquote><pre>
4255+
* <ul>
4256+
* <li>{@code length >= 0}</li>
4257+
* <li>{@code start >= 0}</li>
4258+
* <li>{@code start + length <= c.length}</li>
4259+
* </ul>
42604260
*
42614261
* @param c the array of characters to check
42624262
* @param start the starting offset in the character array

jcl/src/java.management/share/classes/java/lang/management/LockInfo.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ public int getIdentityHashCode() {
8888
/**
8989
* Returns a {@code LockInfo} object represented by the given
9090
* {@code CompositeData}. The given {@code CompositeData} must contain the
91-
* following attributes: <blockquote>
92-
* <table>
91+
* following attributes:
92+
* <br><br><table border=1>
9393
* <caption>The attributes and the types the given CompositeData contains</caption>
9494
* <tr>
95-
* <th style="float:left">Attribute Name</th>
96-
* <th style="float:left">Type</th>
95+
* <th style="text-align:left">Attribute Name</th>
96+
* <th style="text-align:left">Type</th>
9797
* </tr>
9898
* <tr>
9999
* <td>className</td>
@@ -104,7 +104,6 @@ public int getIdentityHashCode() {
104104
* <td><code>java.lang.Integer</code></td>
105105
* </tr>
106106
* </table>
107-
* </blockquote>
108107
*
109108
* @param compositeData
110109
* {@code CompositeData} representing a {@code LockInfo}

jcl/src/jdk.management/share/classes/com/ibm/virtualization/management/HypervisorMXBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
/**
2929
* This interface provides information on whether the current Operating System is running directly on physical hardware
30-
* or running as a Guest (Virtual Machine (VM)/Logical Partition (LPAR)) on top of a Hypervisor.
30+
* or running as a Guest (Virtual Machine (VM)/Logical Partition (LPAR)) on a Hypervisor.
3131
* If the Operating System is running as a Guest, the interface provides information about the Hypervisor.
3232
* <b>Where there are multiple levels of Hypervisor, only the top level Hypervisor information is returned.</b>
3333
* The supported Hypervisors and the platforms on which they are supported:

jcl/src/jdk.management/share/classes/com/sun/management/GarbageCollectionNotificationInfo.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
* a {@code CompositeData} to a {@code GarbageCollectionNotificationInfo}
5757
* object. For example:
5858
*
59-
* <blockquote><pre>
59+
* <pre>
6060
* Notification notif;
6161
*
6262
* // receive the notification emitted by a GarbageCollectorMXBean and save in notif
@@ -69,7 +69,7 @@
6969
* GarbageCollectionNotificationInfo info = GarbageCollectionNotificationInfo.from(cd);
7070
* ...
7171
* }
72-
* </pre></blockquote>
72+
* </pre>
7373
*
7474
* <p>
7575
* The type of the notification emitted by a {@code GarbageCollectorMXBean} is:
@@ -175,8 +175,7 @@ public GcInfo getGcInfo() {
175175
* Returns a {@code GarbageCollectionNotificationInfo} object represented by the
176176
* given {@code CompositeData}.
177177
* The given {@code CompositeData} must contain the following attributes:
178-
* <blockquote>
179-
* <table border=1>
178+
* <br><br><table border=1>
180179
* <caption>CompositeData attributes</caption>
181180
* <tr>
182181
* <th style="text-align:left">Attribute Name</th>
@@ -199,7 +198,6 @@ public GcInfo getGcInfo() {
199198
* <td>{@code com.ibm.lang.management.GcInfo}</td>
200199
* </tr>
201200
* </table>
202-
* </blockquote>
203201
*
204202
* @param cd {@code CompositeData} representing a
205203
* {@code GarbageCollectionNotificationInfo}

jcl/src/jdk.management/share/classes/com/sun/management/GcInfo.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,13 @@
3939
* Garbage collection information. It contains the following
4040
* information for one garbage collection as well as GC-specific
4141
* attributes:
42-
* <blockquote>
4342
* <ul>
4443
* <li>Start time</li>
4544
* <li>End time</li>
4645
* <li>Duration</li>
4746
* <li>Memory usage before the collection starts</li>
4847
* <li>Memory usage after the collection ends</li>
4948
* </ul>
50-
* </blockquote>
5149
*
5250
* @since 9
5351
*/
@@ -187,8 +185,7 @@ public Map<String, MemoryUsage> getMemoryUsageAfterGc() {
187185
* <code>CompositeData</code> must contain
188186
* all the following attributes:
189187
*
190-
* <blockquote>
191-
* <table border=1>
188+
* <br><br><table border=1>
192189
* <caption>CompositeData attributes</caption>
193190
* <tr>
194191
* <th style="text-align:left">Attribute Name</th>
@@ -215,7 +212,7 @@ public Map<String, MemoryUsage> getMemoryUsageAfterGc() {
215212
* <td><code>javax.management.openmbean.TabularData</code></td>
216213
* </tr>
217214
* </table>
218-
* </blockquote>
215+
*
219216
* @param cd <code>CompositeData</code> representing a <code>GcInfo</code>
220217
*
221218
* @throws IllegalArgumentException if <code>cd</code> does not

0 commit comments

Comments
 (0)