< prev index next > src/java.base/share/classes/java/lang/Enum.java
Print this page
"No enum constant " + enumClass.getCanonicalName() + "." + name);
}
/**
* 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() { }
/**
* prevent default deserialization
*/
< prev index next >