Integrated: 8274232: Cleanup unnecessary null comparison before instanceof check in jdk.jdi

Andrey Turbanov duke at openjdk.java.net
Mon Nov 15 19:17:45 UTC 2021


On Thu, 23 Sep 2021 18:04:34 GMT, Andrey Turbanov <duke at openjdk.java.net> wrote:

> Update code checks both non-null and instance of a class in jdk.jdi 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: db0c8d52
Author:    Andrey Turbanov <turbanoff at gmail.com>
Committer: Chris Plummer <cjplummer at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/db0c8d522704d2e12bce4ebeb9297b57e3789f4f
Stats:     59 lines in 20 files changed: 0 ins; 13 del; 46 mod

8274232: Cleanup unnecessary null comparison before instanceof check in jdk.jdi

Reviewed-by: cjplummer, sspitsyn

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

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


More information about the serviceability-dev mailing list