RFR: 6185110: Undefined behaviour of SampleModel for width, height < 0 [v4]

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Nov 25 03:38:16 UTC 2025


On Tue, 25 Nov 2025 03:17:23 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> I updated this as you can see.
>
> Can we specify the NPEs in the same line like what it is done in l675 to be consistent and also to be concise?
> `@throws NullPointerException if {@code obj} or {code data} is null.`

Also, can we specify {@code null} to give emphasis? I see it is be being done like that in many places in swing like for ex.
`javax/swing/plaf/basic/BasicLookAndFeel.java:     * @throws NullPointerException if {@code table} is {@code null}`
and in some updated class in this PR too in some places

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27754#discussion_r2558430538


More information about the client-libs-dev mailing list