RFR: 8354789: Unnecessary null check in sun.awt.windows.WToolkit.getFontPeer [v3]
Alexey Ivanov
aivanov at openjdk.org
Wed Apr 16 13:43:42 UTC 2025
On Wed, 16 Apr 2025 13:40:10 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
>> There is redundant `null` comparison in `sun.awt.windows.WToolkit.getFontPeer`
>> Local variable `retval` can't be null after new object assignment.
>> https://github.com/openjdk/jdk/blob/24de9dee80738fe6ab1fc726b071546c85bbf79a/src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java#L604-L605
>
> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
>
> add empty line
Marked as reviewed by aivanov (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/23150#pullrequestreview-2772576230
More information about the client-libs-dev
mailing list