Skip to content

Commit

Permalink
8337840: Remove redundant null check in ObjectOutputStream.writeProxy…
Browse files Browse the repository at this point in the history
…Desc

Reviewed-by: rriggs
  • Loading branch information
Andrey Turbanov committed Aug 9, 2024
1 parent c01f53a commit 82d5768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/io/ObjectOutputStream.java
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -1272,7 +1272,7 @@ private void writeProxyDesc(ObjectStreamClass desc, boolean unshared)
}

bout.setBlockDataMode(true);
if (cl != null && isCustomSubclass()) {
if (isCustomSubclass()) {
ReflectUtil.checkPackageAccess(cl);
}
annotateProxyClass(cl);
Expand Down

1 comment on commit 82d5768

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.