On Sat, 11 Sep 2021 14:59:21 GMT, Andrey Turbanov <d...@openjdk.java.net> wrote:

> Updated code checks both non-null and instance of a class in java.desktop 
> module classes.
> The checks and explicit casts could also be replaced with pattern matching 
> for the instanceof operator. 
> Similar cleanups
> 1. [JDK-8273484](https://bugs.openjdk.java.net/browse/JDK-8273484) java.naming
> 2. [JDK-8258422](https://bugs.openjdk.java.net/browse/JDK-8258422) java.base

This pull request has now been integrated.

Changeset: 18c54b4e
Author:    Andrey Turbanov <turban...@gmail.com>
Committer: Alexey Ivanov <aiva...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/18c54b4e1ade2ea5531054ed19441d5bff84fcdc
Stats:     526 lines in 122 files changed: 0 ins; 115 del; 411 mod

8274640: Cleanup unnecessary null comparison before instanceof check in 
java.desktop

Reviewed-by: aivanov

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

PR: https://git.openjdk.java.net/jdk/pull/5482

Reply via email to