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,
can be replaced with
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.