Skip to content

Commit 82d5768

Browse files
author
Andrey Turbanov
committedAug 9, 2024
8337840: Remove redundant null check in ObjectOutputStream.writeProxyDesc
Reviewed-by: rriggs
1 parent c01f53a commit 82d5768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/java.base/share/classes/java/io/ObjectOutputStream.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1996, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1272,7 +1272,7 @@ private void writeProxyDesc(ObjectStreamClass desc, boolean unshared)
12721272
}
12731273

12741274
bout.setBlockDataMode(true);
1275-
if (cl != null && isCustomSubclass()) {
1275+
if (isCustomSubclass()) {
12761276
ReflectUtil.checkPackageAccess(cl);
12771277
}
12781278
annotateProxyClass(cl);

0 commit comments

Comments
 (0)