This rule detects when the compareTo(Object) method is called directly in code instead of using the <=>, >, >=, <, and <= operators. A groovier way to express this: a.compareTo(b) is this: a <=> b, or using the other operators.
Type | Name and description |
---|---|
Class |
astVisitorClass |
boolean |
ignoreThisReference |
String |
name |
int |
priority |