RFR: 8077587: BigInteger Roots [v45]
Raffaello Giulietti
rgiulietti at openjdk.org
Fri Jul 25 15:39:56 UTC 2025
On Fri, 25 Jul 2025 15:36:59 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:
>> 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.
>
> I guess most developer use a Java IDE for Java development.
> My IDE shows variables that are altered by underlying their name at every occurrence in the code. I can see at a glance that `n` is not modified even without `final`.
> As said, it's a matter of convention. In the OpenJDK we usually don't use `final` on parameters, as it clutters the header. Just have a look at a random place in the codebase.
underlying -> underlining
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24898#discussion_r2231449148
More information about the core-libs-dev
mailing list