com.puppycrawl.tools.checkstyle.checks

Class UpperEllCheck

public class UpperEllCheck extends Check

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"/>
 

Version: 1.0

Author: Oliver Burn

Method Summary
int[]getDefaultTokens()
{@inheritDoc}
voidvisitToken(DetailAST aAST)
{@inheritDoc}

Method Detail

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc}