Back to Intellij Community

InsertLiteralUnderscores

java/java-impl/resources/inspectionDescriptions/InsertLiteralUnderscores.html

2025.3-rc-2333 B
Original Source

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

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

New in 2020.2