Skip to content

Commit bed29a0

Browse files
committed
8356555: Incorrect use of {@link} in BigDecimal
Reviewed-by: bpb, nbenalla, liach, iris
1 parent dd25799 commit bed29a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
* considers members of the same cohort to be equal to each other. In
106106
* contrast, the {@link equals equals} method requires both the
107107
* numerical value and representation to be the same for equality to
108-
* hold. The results of methods like {@link scale} and {@link
109-
* unscaledValue} will differ for numerically equal values with
108+
* hold. The results of methods like {@link #scale()} and {@link
109+
* #unscaledValue()} will differ for numerically equal values with
110110
* different representations.
111111
*
112112
* <p>In general the rounding modes and precision setting determine
@@ -360,10 +360,10 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
360360
private final BigInteger intVal;
361361

362362
/**
363-
* The scale of this BigDecimal, as returned by {@link #scale}.
363+
* The scale of this BigDecimal, as returned by {@link #scale()}.
364364
*
365365
* @serial
366-
* @see #scale
366+
* @see #scale()
367367
*/
368368
private final int scale; // Note: this may have any value, so
369369
// calculations must be done in longs

0 commit comments

Comments
 (0)