RFR: 8356555: Incorrect use of {@link} in BigDecimal
Joe Darcy
darcy at openjdk.org
Fri May 9 16:10:57 UTC 2025
On Fri, 9 May 2025 10:32:27 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:
> I just noticed there are a couple more javadoc tags that need to be fixed in this class, I still see two more warnings. I should have included these in the JBS issue when filling it.
>
> ```
> src/java.base/share/classes/java/math/BigDecimal.java:363: warning: reference to non-visible type: BigDecimal.scale (use -protected or -private options to document non-public types)
> * The scale of this BigDecimal, as returned by {@link #scale}.
> ^
> src/java.base/share/classes/java/math/BigDecimal.java:366: warning: reference to non-visible type: BigDecimal.scale (use -protected or -private options to document non-public types)
> * @see #scale
> ^
> ```
> ```
Okay; I'll add a fix for that, although the javadoc text is one a private field so is not generated by default.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25131#issuecomment-2867109531
More information about the core-libs-dev
mailing list