Class UpperEllCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public class UpperEllCheck
    extends AbstractCheck

    Checks that long constants are defined with an upper ell. That is 'L' and not 'l'. This is in accordance to the Java Language Specification, Section 3.10.1.

    Rationale: The letter l looks a lot like the number 1.

    Examples

    To configure the check:

     <module name="UpperEll"/>
     
    Author:
    Oliver Burn