Inspectopedia 2025.3 Help

Numeric literal can use underscore separators

Reports long numeric literals without underscore separators and suggests adding them. Underscore separators can make such literals easier to read.

Example:

1000000

After the quick-fix is applied:

1_000_000

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

InsertLiteralUnderscores
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Java | Numeric issues

This inspection only reports if the language level of the project or module is 7 or higher.

Inspection ID: InsertLiteralUnderscores

New in 2020.2

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection InsertLiteralUnderscores

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Inspection Details

By default bundled with:

IntelliJ IDEA 2025.3, Qodana for JVM 2025.3,

Last modified: 03 December 2025