On Sun, 26 Sep 2021 15:10:52 GMT, Andrey Turbanov <d...@openjdk.java.net> 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.

This pull request has now been integrated.

Changeset: 36b59f38
Author:    Andrey Turbanov <turban...@gmail.com>
Committer: Roger Riggs <rri...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/36b59f3814fdaa44c9c04a0e8d63d0ba56929326
Stats:     14 lines in 2 files changed: 4 ins; 5 del; 5 mod

8274333: Redundant null comparison after Pattern.split

Reviewed-by: mullan, weijun, rriggs, iris

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

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

Reply via email to