RFR: JDK-8257448: Clean duplicated non-null check in the SunJSSE provider implementation

Sean Mullan mullan at openjdk.java.net
Mon Nov 30 20:50:55 UTC 2020

On Mon, 30 Nov 2020 19:51:42 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

> In the SunJSSE provider implementation, there are a few non-null check, used together with "instanceof" check.  For such cases, the non-null check is redundant as it could be covered by the "instanceof" check.  This update will remove the non-null check, like:
> -   if ((cause != null) && (cause instanceof IOException)) { 
> +  if (cause instanceof IOException) {
> Code cleanup, no new regression text.
> Bug: https://bugs.openjdk.java.net/browse/JDK-8257448

Marked as reviewed by mullan (Reviewer).


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

More information about the security-dev mailing list