> 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: 8354789: Unnecessary null check in sun.awt.windows.WToolkit.getFontPeer ------------- Changes: - all: https://git.openjdk.org/jdk/pull/23150/files - new: https://git.openjdk.org/jdk/pull/23150/files/ebb84a5d..ce662e8c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=23150&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23150&range=00-01 Stats: 5 lines in 1 file changed: 0 ins; 1 del; 4 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