RFR: 8077587: BigInteger Roots [v45]
fabioromano1
duke at openjdk.org
Fri Jul 25 15:28:58 UTC 2025
On Fri, 25 Jul 2025 15:23:32 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:
>> In this case, `final` serves to indicate that the value of `n` is never modified by the method.
>
> Of course.
> To the caller, a `final` parameter does not convey any information, and makes the method/constructor header less concise.
> There are thousands of methods in the JDK that do no alter their parameters, and yet these are not annotated with `final`.
> It's just a matter of convention.
Yes, but in this way you see at a glance that the parameter is a constant, and you do not have to check all the method's code.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24898#discussion_r2231422159
More information about the core-libs-dev
mailing list