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

Sean Mullan mullan at openjdk.org
Wed Jul 6 15:09:49 UTC 2022


On Fri, 24 Jun 2022 18:27:05 GMT, Andrey Turbanov <aturbanov at 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)

Marked as reviewed by mullan (Reviewer).

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

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



More information about the security-dev mailing list