On Fri, 25 Jul 2025 15:36:59 GMT, Raffaello Giulietti <rgiulie...@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

Reply via email to