RFR: JDK-8289730 : Deprecated code sample in java.lang.ClassCastException
ScientificWare
duke at openjdk.org
Tue Jul 5 18:39:30 UTC 2022
On Tue, 5 Jul 2022 17:27:03 GMT, Joe Darcy <darcy 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.
@jddarcy, please could you sponsor this PR ?
-------------
PR: https://git.openjdk.org/jdk/pull/9359
More information about the core-libs-dev
mailing list