RFR: 8159055: ImageIcon.setImage and ImageIcon(Image) constructor can't handle null parameter [v11]

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Jul 3 05:36:44 UTC 2025


On Fri, 20 Jun 2025 11:54:11 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Remove resetting description from constructor as it is already null
>
> src/java.desktop/share/classes/javax/swing/ImageIcon.java line 219:
> 
>> 217:      * Creates an ImageIcon from an image object.
>> 218:      * Setting a {@code null} image means
>> 219:      * no image will be rendered.
> 
> Suggestion:
> 
>      * If the image is {@code null}, no icon will be rendered.

ok

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25767#discussion_r2181804281


More information about the client-libs-dev mailing list