From bed29a03d198a9717f7d258ee21330462775136e Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Fri, 9 May 2025 16:35:51 +0000 Subject: [PATCH] 8356555: Incorrect use of {@link} in BigDecimal Reviewed-by: bpb, nbenalla, liach, iris --- src/java.base/share/classes/java/math/BigDecimal.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java.base/share/classes/java/math/BigDecimal.java b/src/java.base/share/classes/java/math/BigDecimal.java index c710d67ec52..dd6253a7132 100644 --- a/src/java.base/share/classes/java/math/BigDecimal.java +++ b/src/java.base/share/classes/java/math/BigDecimal.java @@ -105,8 +105,8 @@ import jdk.internal.util.DecimalDigits; * considers members of the same cohort to be equal to each other. In * contrast, the {@link equals equals} method requires both the * numerical value and representation to be the same for equality to - * hold. The results of methods like {@link scale} and {@link - * unscaledValue} will differ for numerically equal values with + * hold. The results of methods like {@link #scale()} and {@link + * #unscaledValue()} will differ for numerically equal values with * different representations. * *

In general the rounding modes and precision setting determine @@ -360,10 +360,10 @@ public class BigDecimal extends Number implements Comparable { private final BigInteger intVal; /** - * The scale of this BigDecimal, as returned by {@link #scale}. + * The scale of this BigDecimal, as returned by {@link #scale()}. * * @serial - * @see #scale + * @see #scale() */ private final int scale; // Note: this may have any value, so // calculations must be done in longs