Migrate from deprecated boxed primitive constructors to their replacements
General
Other Data
General
Other Data
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!
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.
Description
Migrate from deprecated boxed primitive constructors to their replacements. E.g.,
new Integer(...)
becomesInteger.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