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 language level of the project or module is 5 or higher

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

Use the second checkbox to only report calls to deprecated constructors. Long, Integer, Short andByte constructors are deprecated since JDK 9.