Groovy Documentation

groovy.org.codenarc.rule.convention
[Groovy] Class LongLiteralWithLowerCaseLRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.convention.LongLiteralWithLowerCaseLRule

class LongLiteralWithLowerCaseLRule
extends AbstractAstVisitorRule

In Java and Groovy, you can specify long literals with the L or l character, for instance 55L or 24l. It is best practice to always use an uppercase L and never a lowercase l. This is because 11l rendered in some fonts may look like 111 instead of 11L.

Authors:
Hamlet D'Arcy


Property Summary
Class astVisitorClass

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 

Groovy Documentation