-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b117
This bug covers cleanup of these warnings. As part of this cleanup, the deprecation warnings should be re-enabled.
For the most part, changing a call to a constructor can straightforwardly be replaced by a call to the corresponding valueOf() method. For example,
new Double(dval)
can be replaced with
Double.valueOf(dval)
It's possible to use 'dval' itself in some contexts, and rely on autoboxing, but this can be a bit dangerous. I only recommend converting to autoboxing if it's clear from context that relying on it is safe.
- relates to
-
JDK-8145468 update java.lang APIs with new deprecations
-
- Resolved
-
-
JDK-8257512 Remove use of deprecated primitive constructors in JavaFX
-
- Resolved
-