Integrated: 8337840: Remove redundant null check in ObjectOutputStream.writeProxyDesc

Andrey Turbanov aturbanov at openjdk.org
Fri Aug 9 07:22:37 UTC 2024


On Fri, 26 Jul 2024 13:09:19 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> There is implicit null check in line before.
> 
> https://github.com/openjdk/jdk/blob/431d4f7e18369466eedd00926a5162a1461d0b25/src/java.base/share/classes/java/io/ObjectOutputStream.java#L1267-L1277
> 
> 'cl' can't be null after that.

This pull request has now been integrated.

Changeset: 82d5768c
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/82d5768c1bdccfaf97a41f32a8bfcfd03a0fb378
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8337840: Remove redundant null check in ObjectOutputStream.writeProxyDesc

Reviewed-by: rriggs

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

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


More information about the core-libs-dev mailing list