mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8276447: Deprecate finalization-related methods for removal
Reviewed-by: rriggs, alanb, lancea, darcy, mchung, serb, smarks, prr
This commit is contained in:
parent
3c2951f738
commit
ec7cb6d5d3
62 changed files with 156 additions and 140 deletions
|
@ -242,7 +242,7 @@ public class MeteredStream extends FilterInputStream {
|
|||
return readLock.isHeldByCurrentThread();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@SuppressWarnings("removal")
|
||||
protected void finalize() throws Throwable {
|
||||
try {
|
||||
close();
|
||||
|
|
|
@ -270,7 +270,7 @@ abstract class BaseSSLSocketImpl extends SSLSocket {
|
|||
* the penalty of prematurly killing SSL sessions.
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
@SuppressWarnings("removal")
|
||||
protected final void finalize() throws Throwable {
|
||||
try {
|
||||
close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue