Long suffix "L" should be upper case

  • squid : LowerCaseLongSuffixCheck

The long suffix should always be written in upper case, i.e. 'L', as the lower case 'l' can easily be confused with the digit one '1'.

The following code:

long n = 10l;  // Non-Compliant - easily confused with one zero one

should be refactored into:

long n = 10L;  // Compliant
Close