RFR: 8274333: Redundant null comparison after Pattern.split

Sean Mullan mullan at openjdk.java.net
Mon Sep 27 13:18:26 UTC 2021

On Sun, 26 Sep 2021 15:10:52 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:

> In couple of classes, result part of arrays of Pattern.split is compared with `null`. Pattern.split (and hence String.split) never returns `null` in array elements. Such comparisons are redundant.

The AlgorithmDecomposer change looks fine to me.


Marked as reviewed by mullan (Reviewer).

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

More information about the core-libs-dev mailing list