Reports any attempt to instantiate a new Long,
Integer, Short or
Byte object from a primitive long,
integer, short or
byte
argument. It may be more efficient to use the static method valueOf()
here (introduced in Java 5), which will cache objects for values between -128 and
127 inclusive. This inspection ignores calls to number constructors using a
String argument.
This inspection only reports if the project or module is configured to use a
language level of 5.0 or higher.
Powered by InspectionGadgets