RFR: 8299497: Usage of constructors of primitive wrapper classes should be avoided in java.desktop API docs

Tingjun Yuan duke at openjdk.org
Sat Jan 21 03:15:47 UTC 2023


API docs of `java.awt.image.renderable.ParameterBlock` and `java.awt.font.LineBreakMeasurer` used deprecated constructors of `java.lang.Short` and `java.lang.Float`.

Replacing by `valueOf` factory methods.

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

Commit messages:
 - Update LineBreakMeasurer.java
 - Update ParameterBlock.java
 - Update LineBreakMeasurer.java

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

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



More information about the client-libs-dev mailing list