On Fri, 25 Jul 2025 15:14:42 GMT, fabioromano1 <d...@openjdk.org> wrote:
>> src/java.base/share/classes/java/math/MutableBigInteger.java line 1929: >> >>> 1927: * @return the integer {@code n}th root of {@code this} and the >>> remainder >>> 1928: */ >>> 1929: MutableBigInteger[] nthRootRem(final int n) { >> >> We rarely use `final` on a parameter. > > 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. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/24898#discussion_r2231413900