构造函数 Integer(int)、Double(double)、Long(long) 等已弃用
2022-08-31 13:23:00
工作时,我收到了警告
The constructor Integer(int) is deprecated
我无法在线找到替代构造函数/解决方案。如何解决此问题?
更新
我将收到其他原始包装器类型的构造函数的类似警告;例如:
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
与 ?Integer