The primitive constructors ("new Double", "New Integer", etc) were deprecated in JDK 9, and will be terminally deprecated in JDK 16 for subsequent removal. See
JDK-8249100. We need to replace all calls to these constructors either with a call to the appropriate "valueOf" factory method or with auto-boxing. See JDK-8154213 for some considerations to be aware of.