RFR: 8299499: Usage of constructors of primitive wrapper classes should be avoided in java.net API docs
Justin Lu
duke at openjdk.org
Thu Jan 5 22:18:31 UTC 2023
On Thu, 5 Jan 2023 19:09:29 GMT, Justin Lu <duke at openjdk.org> wrote:
> Replacing deprecated constructors of primitive wrapper classes. Used valueOf() method as replacement.
>
> Alternatively, auto boxing could have been used here as well. It would be beneficial to set a precedent for the other related doc bugs.
I chose valueOf() because I thought it provided more clarity from a documentation standpoint. Open to any suggestions.
-------------
PR: https://git.openjdk.org/jdk/pull/11866
More information about the net-dev
mailing list