Since Checkstyle 3.0
'L'
and not 'l'
. This is in accordance with the Java
Language Specification,
Section 3.10.1.
Rationale: The lower-case ell 'l'
looks a lot like 1
.
To configure the check:
<module name="Checker"> <module name="TreeWalker"> <module name="UpperEll"/> </module> </module>
Example:
class Example1 { long var1 = 508987; // OK long var2 = 508987l; // violation long var3 = 508987L; // OK }
All messages can be customized if the default message doesn't suit you. Please see the documentation to learn how to.
com.puppycrawl.tools.checkstyle.checks