RFR: JDK-8289730 : Deprecated code in src/java.base/share/classes/java/lang/ClassCastException.java

Joe Darcy darcy at openjdk.org
Tue Jul 5 17:29:48 UTC 2022


On Mon, 4 Jul 2022 06:57:12 GMT, ScientificWare <duke at openjdk.org> wrote:

> - Correct a deprecated code. 
> - Update Copyright.
> - More wide question : How are you dealing with deprecated codes in snippets ?
>   ```
>   @deprecated(since="9")
>   public Integer​(int value)
>   ```

Looks fine.

There is as of yet no systemic way of dealing with compiler warnings with formal or informal snippet samples, but JEP 413: "Code Snippets in Java API Documentation" is meant to enable that.

-------------

Marked as reviewed by darcy (Reviewer).

PR: https://git.openjdk.org/jdk/pull/9359


More information about the core-libs-dev mailing list