On Fri, 24 Jun 2022 18:27:05 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:

> Update code checks both non-null and instance of a class in security classes.
> The checks and explicit casts could also be replaced with pattern matching 
> for the instanceof operator.
> 
> See similar cleanup in java.base - 
> [JDK-8258422](https://bugs.openjdk.java.net/browse/JDK-8258422)

This pull request has now been integrated.

Changeset: 87aa3ce0
Author:    Andrey Turbanov <aturba...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/87aa3ce03e5e294b35cf2cab3cbba0d1964bbbff
Stats:     94 lines in 14 files changed: 0 ins; 40 del; 54 mod

8289274: Cleanup unnecessary null comparison before instanceof check in 
security modules

Reviewed-by: mullan

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

PR: https://git.openjdk.org/jdk/pull/9284

Reply via email to