Any element that can be annotated with @Deprecated indicates that that specific element is no longer used due to the following reasons
Java 9 adds two new elements: since and forRemoval attributes.
1) since: This element specifies the deprecated version of the annotated API element.
2) forRemoval: indicates the annotated Elements of the API element can be removed in future releases and the API can be migrated.
The following web page is the documentation for the Boolean class in Java 9. @Deprecated Notes Use the "since" attribute in the document: Boolean Class.The above is the detailed content of What are the improvements to the @Deprecated annotation in Java 9?. For more information, please follow other related articles on the PHP Chinese website!