Inspectopedia Help


Reports expressions that are affected by unboxing conversion (automatic unwrapping of objects into primitive values). Try not to use objects instead of primitives. It might significantly affect the performance.


int x = new Integer(42);

The quick-fix makes the conversion explicit:

int x = new Integer(42).intValue();

AutoUnboxing appeared in Java 5. This inspection can help to downgrade for backward compatibility with earlier Java versions.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023