Skip to content

Commit c434528

Browse files
committed
8273546: DecimalFormat documentation contains literal HTML character references
Reviewed-by: joehw, bpb, iris, lancea
1 parent d098751 commit c434528

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/java.base/share/classes/java/math/BigInteger.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ private static int getPrimeSearchLen(int bitLength) {
941941
* @param certainty a measure of the uncertainty that the caller is
942942
* willing to tolerate: if the call returns {@code true}
943943
* the probability that this BigInteger is prime exceeds
944-
* {@code (1 - 1/2<sup>certainty</sup>)}. The execution time of
944+
* <code>(1 - 1/2<sup>certainty</sup>)</code>. The execution time of
945945
* this method is proportional to the value of this parameter.
946946
* @return {@code true} if this BigInteger is probably prime,
947947
* {@code false} if it's definitely composite.
@@ -2066,20 +2066,20 @@ private BigInteger getUpper(int n) {
20662066
// Squaring
20672067

20682068
/**
2069-
* Returns a BigInteger whose value is {@code (this<sup>2</sup>)}.
2069+
* Returns a BigInteger whose value is <code>(this<sup>2</sup>)</code>.
20702070
*
2071-
* @return {@code this<sup>2</sup>}
2071+
* @return <code>this<sup>2</sup></code>
20722072
*/
20732073
private BigInteger square() {
20742074
return square(false);
20752075
}
20762076

20772077
/**
2078-
* Returns a BigInteger whose value is {@code (this<sup>2</sup>)}. If
2078+
* Returns a BigInteger whose value is <code>(this<sup>2</sup>)</code>. If
20792079
* the invocation is recursive certain overflow checks are skipped.
20802080
*
20812081
* @param isRecursion whether this is a recursive invocation
2082-
* @return {@code this<sup>2</sup>}
2082+
* @return <code>this<sup>2</sup></code>
20832083
*/
20842084
private BigInteger square(boolean isRecursion) {
20852085
if (signum == 0) {

src/java.base/share/classes/java/text/CompactNumberFormat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@
169169
* <i>NegativePattern:</i>
170170
* <i>Prefix<sub>optional</sub></i> <i>MinimumInteger</i> <i>Suffix<sub>optional</sub></i>
171171
* <i>Prefix:</i>
172-
* Any Unicode characters except &#92;uFFFE, &#92;uFFFF, and
172+
* Any Unicode characters except {@code U+FFFE}, {@code U+FFFF}, and
173173
* <a href = "DecimalFormat.html#special_pattern_character">special characters</a>.
174174
* <i>Suffix:</i>
175-
* Any Unicode characters except &#92;uFFFE, &#92;uFFFF, and
175+
* Any Unicode characters except {@code U+FFFE}, {@code U+FFFF}, and
176176
* <a href = "DecimalFormat.html#special_pattern_character">special characters</a>.
177177
* <i>MinimumInteger:</i>
178178
* 0

src/java.base/share/classes/java/text/DecimalFormat.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@
9696
* <i>NegativePattern:</i>
9797
* <i>Prefix<sub>opt</sub></i> <i>Number</i> <i>Suffix<sub>opt</sub></i>
9898
* <i>Prefix:</i>
99-
* any Unicode characters except &#92;uFFFE, &#92;uFFFF, and special characters
99+
* any Unicode characters except {@code U+FFFE}, {@code U+FFFF}, and special characters
100100
* <i>Suffix:</i>
101-
* any Unicode characters except &#92;uFFFE, &#92;uFFFF, and special characters
101+
* any Unicode characters except {@code U+FFFE}, {@code U+FFFF}, and special characters
102102
* <i>Number:</i>
103103
* <i>Integer</i> <i>Exponent<sub>opt</sub></i>
104104
* <i>Integer</i> . <i>Fraction</i> <i>Exponent<sub>opt</sub></i>
@@ -221,12 +221,12 @@
221221
* <td>Yes
222222
* <td>Multiply by 100 and show as percentage
223223
* <tr style="vertical-align:top">
224-
* <th scope="row">{@code &#92;u2030}
224+
* <th scope="row">{@code U+2030}
225225
* <td>Prefix or suffix
226226
* <td>Yes
227227
* <td>Multiply by 1000 and show as per mille value
228228
* <tr style="vertical-align: top">
229-
* <th scope="row">{@code &#164;} ({@code &#92;u00A4})
229+
* <th scope="row">&#164; ({@code U+00A4})
230230
* <td>Prefix or suffix
231231
* <td>No
232232
* <td>Currency sign, replaced by currency symbol. If
@@ -309,12 +309,12 @@
309309
* <h4>Special Values</h4>
310310
*
311311
* <p>{@code NaN} is formatted as a string, which typically has a single character
312-
* {@code &#92;uFFFD}. This string is determined by the
312+
* {@code U+FFFD}. This string is determined by the
313313
* {@code DecimalFormatSymbols} object. This is the only value for which
314314
* the prefixes and suffixes are not used.
315315
*
316316
* <p>Infinity is formatted as a string, which typically has a single character
317-
* {@code &#92;u221E}, with the positive or negative prefixes and suffixes
317+
* {@code U+221E}, with the positive or negative prefixes and suffixes
318318
* applied. The infinity string is determined by the
319319
* {@code DecimalFormatSymbols} object.
320320
*
@@ -2735,7 +2735,7 @@ public int getMultiplier () {
27352735
* For a percent format, set the multiplier to 100 and the suffixes to
27362736
* have '%' (for Arabic, use the Arabic percent sign).
27372737
* For a per mille format, set the multiplier to 1000 and the suffixes to
2738-
* have '&#92;u2030'.
2738+
* have '{@code U+2030}'.
27392739
*
27402740
* <P>Example: with multiplier 100, 1.23 is formatted as "123", and
27412741
* "123" is parsed into 1.23.

0 commit comments

Comments
 (0)