Migrate from deprecated boxed primitive constructors to their replacements

Description

Description

Migrate from deprecated boxed primitive constructors to their replacements. E.g., new Integer(...) becomes Integer.valueOf(...).

The boxed primitive constructors are deprecated for removal. That means these APIs will be deleted in a future JDK release and CLDR code will stop compiling!

https://bugs.openjdk.org/browse/JDK-8176335 “Release Note: Deprecation of Boxed Primitive Constructors“

Deprecated, for removal: This API element is subject to removal in a future version.

It is rarely appropriate to use this constructor. The static factory valueOf(int) is generally a better choice, as it is likely to yield significantly better space and time performance.


See matching issue in CLDR:

https://unicode-org.atlassian.net/browse/CLDR-17399

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Priority

Fix versions

Created February 23, 2024 at 11:15 PM
Updated April 1, 2024 at 9:26 PM
Resolved April 1, 2024 at 9:26 PM