Inspectopedia Help

Unreadable numeric literal

Reports long numeric literals without underscores and suggests adding them. Underscores make such literals easier to read.

Example:

1000000

After the quick-fix is applied:

1_000_000

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

New in 2020.2

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.16690

Last modified: 29 April 2024