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:30 UTC 2023


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.

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

Commit messages:
 - Replace constructors with valueOf()

Changes: https://git.openjdk.org/jdk/pull/11866/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11866&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8299499
  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/11866.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11866/head:pull/11866

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


More information about the net-dev mailing list