The constructors Integer(int), Double(double), Long(long) and so on are deprecated
UPDATE
I will get a similar warning with constructors for other primitive wrapper types; e.g.
The constructor Boolean(boolean) is deprecated
The constructor Byte(byte) is deprecated
The constructor Short(short) is deprecated
The constructor Character(char) is deprecated
The constructor Long(long) is deprecated
The constructor Float(float) is deprecated
The constructor Double(double) is deprecated
Does the same solution apply to these classes as for Integer
?
Double d = new Double(87.0);