8337840: Remove redundant null check in ObjectOutputStream.writeProxyDesc

Reviewed-by: rriggs
This commit is contained in:
Andrey Turbanov 2024-08-09 07:20:01 +00:00
parent c01f53ac2d
commit 82d5768c1b

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -1272,7 +1272,7 @@ public class ObjectOutputStream
}
bout.setBlockDataMode(true);
if (cl != null && isCustomSubclass()) {
if (isCustomSubclass()) {
ReflectUtil.checkPackageAccess(cl);
}
annotateProxyClass(cl);