Inspectopedia Help

'long' literal ending with 'l' instead of 'L'

Reports long literals ending with lowercase 'l'. These literals may be confusing, as the lowercase 'l' looks very similar to a literal '1' (one).


long nights = 100l;

After the quick-fix is applied:

long nights = 100L;

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023