Skip to content
Permalink
Browse files
8263905: Remove finalize methods for SocketInput/OutputStream
Reviewed-by: alanb, vtewari, dfuchs, mchung
  • Loading branch information
Kim Barrett committed Mar 23, 2021
1 parent 1c9817b commit 47ef038977cf02ccfd52c283cba755c9ae6f444b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2021, 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
@@ -243,12 +243,6 @@ public void close() throws IOException {
assert false;
}

/**
* Overrides finalize, the fd is closed by the Socket.
*/
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {}

/**
* Perform class load-time initializations.
*/
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2021, 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
@@ -153,12 +153,6 @@ public void close() throws IOException {
assert false;
}

/**
* Overrides finalize, the fd is closed by the Socket.
*/
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {}

/**
* Perform class load-time initializations.
*/

0 comments on commit 47ef038

Please sign in to comment.