On Mon, 9 Jan 2023 21:46:49 GMT, Justin Lu <d...@openjdk.org> wrote: > The javadocs of the following methods used deprecated constructors of the > primitive wrapper classes: > > java.lang.ArrayStoreException > java.lang.Byte.valueOf(String) > java.lang.Byte.valueOf(String, int) > java.lang.ClassCastException > java.lang.Double.compare(double, double) > java.lang.Float.compare(float, float) > java.lang.Integer.getInteger(String, int) > java.lang.Integer.valueOf(String) > java.lang.Integer.valueOf(String, int) > java.lang.Long.getLong(String, long) > java.lang.Long.valueOf(String) > java.lang.Long.valueOf(String, int) > java.lang.Short.valueOf(String) > java.lang.Short.valueOf(String, int) > > This change replaces the constructors with .valueOf() methods except > java.lang.ClassCastException which was already fixed in JDK-8289730
This pull request has now been integrated. Changeset: d663b5da Author: Justin Lu <justin...@oracle.com> Committer: Naoto Sato <na...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/d663b5da10be1f3f33a2729e4b3605fb5e13b4d6 Stats: 22 lines in 7 files changed: 0 ins; 0 del; 22 mod 8299498: Usage of constructors of primitive wrapper classes should be avoided in java.lang API docs Reviewed-by: naoto, darcy, rriggs, mchung, lancea ------------- PR: https://git.openjdk.org/jdk/pull/11912