RFR: 8254271: Development to deprecate wrapper class constructors for removal
Dan Smith
dlsmith at openjdk.java.net
Tue Oct 13 21:43:27 UTC 2020
On Tue, 13 Oct 2020 20:32:46 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Marked as reviewed by mchung (Reviewer).
>
> Please review the CSR for 8252180, to be used for the integration
>
> CSR 8254324: [JEP 390] Deprecate wrapper class constructors for removal
Have you considered rephrasing the reference to constructors in the `valueOf` methods?:
* If a new {@code Byte} instance is not required, this method
* should generally be used in preference to the constructor
* {@link #Byte(byte)}
The message now is "Don't use the constructors! Don't try to get a new instance!"
-------------
PR: https://git.openjdk.java.net/valhalla/pull/221
More information about the valhalla-dev
mailing list