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 only reports if the project or module is configured to use a language level of 5.0 or higher.

Use the checkbox below to ignore calls to number constructors with a String argument.