upper-ell
What it does
Section titled “What it does”Reports an integer literal that ends in a lower case l (10l).
Why it matters
Section titled “Why it matters”A lower case l looks like the digit 1, so 10l reads as 101. The upper case suffix cannot be mistaken.
To fix, write 10L.
Example
Section titled “Example”... }
boolean ok(boolean done, String s) { long big = 10l; long fine = 10L;... return s.equals("a");...Configuration
Section titled “Configuration”java: lint: rules: upper-ell: warn # off, warn (default), errorSuppress one line with sudsy-disable-next-line upper-ell in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| checkstyle | UpperEll |
full |