8276447: Deprecate finalization-related methods for removal

Reviewed-by: rriggs, alanb, lancea, darcy, mchung, serb, smarks, prr
This commit is contained in:
Brent Christian 2021-12-08 00:23:15 +00:00
parent 3c2951f738
commit ec7cb6d5d3
62 changed files with 156 additions and 140 deletions

View file

@ -136,7 +136,7 @@ abstract class CramMD5Base {
}
}
@SuppressWarnings("deprecation")
@SuppressWarnings("removal")
protected void finalize() {
clearPassword();
}

View file

@ -195,7 +195,7 @@ final class PlainClient implements SaslClient {
}
}
@SuppressWarnings("deprecation")
@SuppressWarnings("removal")
protected void finalize() {
clearPassword();
}