8263905: Remove finalize methods for SocketInput/OutputStream

Reviewed-by: alanb, vtewari, dfuchs, mchung
This commit is contained in:
Kim Barrett 2021-03-23 20:54:23 +00:00
parent 1c9817b0bc
commit 47ef038977
2 changed files with 2 additions and 14 deletions

View file

@ -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 @@ class SocketInputStream extends FileInputStream {
assert false;
}
/**
* Overrides finalize, the fd is closed by the Socket.
*/
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {}
/**
* Perform class load-time initializations.
*/

View file

@ -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 @@ class SocketOutputStream extends FileOutputStream {
assert false;
}
/**
* Overrides finalize, the fd is closed by the Socket.
*/
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {}
/**
* Perform class load-time initializations.
*/