|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codenarc.rule.AbstractAstVisitorRule
groovy.org.codenarc.rule.unnecessary.UnnecessaryModOneRule
class UnnecessaryModOneRule extends AbstractAstVisitorRule
Any expression mod 1 (exp % 1) is guaranteed to always return zero. This code is probably an error, and should be either (exp & 1) or (exp % 2).
Property Summary | |
---|---|
Class |
astVisitorClass
|
String |
name
|
int |
priority
|
Property Detail |
---|
Class astVisitorClass
String name
int priority
Groovy Documentation