All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.java.rules.squid.LowerCaseLongSuffixCheck.html Maven / Gradle / Ivy

There is a newer version: 8.6.0.37351
Show newest version

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

The following code:

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

should be refactored into:

long n = 10L;  // Compliant




© 2015 - 2025 Weber Informatics LLC | Privacy Policy