JDK-8145468 will deprecate the boxed primitive constructors. There are currently over 100 uses of these constructors in the java.desktop module; these will generate warnings at compile time. The changeset for JDK-8145468 will temporarily disable deprecation warnings for java.desktop.
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.