On Tue, 23 Jun 2026 16:09:03 GMT, Chen Liang <[email protected]> wrote:

>> src/java.base/share/classes/jdk/internal/misc/Unsafe.java line 358:
>> 
>>> 356:      * @return the value fetched from the indicated Java variable
>>> 357:      * @throws RuntimeException No defined exceptions are thrown, not 
>>> even
>>> 358:      *         {@link NullPointerException}
>> 
>> If this method doesn't throw any exceptions, I think the `@throws` should be 
>> removed. (same for the put)
>
> Preexisting for methods like `getInt`.

Seconded

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/31123#discussion_r3466520748

Reply via email to