mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -275,8 +275,13 @@ public abstract class Enum<E extends Enum<E>>
|
|||
|
||||
/**
|
||||
* enum classes cannot have finalize methods.
|
||||
*
|
||||
* @deprecated Finalization has been deprecated for removal. See
|
||||
* {@link java.lang.Object#finalize} for background information and details
|
||||
* about migration options.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@Deprecated(since="18", forRemoval=true)
|
||||
@SuppressWarnings("removal")
|
||||
protected final void finalize() { }
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue