Inspectopedia
 
2024.3

Octal integer

Warning
Last modified: 03 December 2024

Reports octal integer literals. Some coding standards prohibit the use of octal literals, as they may be easily confused with decimal literals.

Example:

This inspection has two different quick-fixes. After the Convert octal literal to decimal literal quick-fix is applied, the code changes to:

After the Remove leading zero to make decimal quick-fix is applied, the code changes to: