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
------------- Commit messages: - [PATCH] Unnecessary null check in sun.awt.windows.WToolkit.getFontPeer Changes: https://git.openjdk.org/jdk/pull/23150/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23150&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8354789 Stats: 9 lines in 1 file changed: 0 ins; 2 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/23150.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/23150/head:pull/23150 PR: https://git.openjdk.org/jdk/pull/23150