RFR: 8274333: Redundant null comparison after Pattern.split

Weijun Wang weijun at openjdk.java.net
Mon Oct 4 14:25:14 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.

Marked as reviewed by weijun (Reviewer).

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

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


More information about the core-libs-dev mailing list