This rule finds usages of String.substring(int) and String.substring(int, int) that can be replaced by use of the subscript operator. For instance, var.substring(5) can be replaced with var[5..-1].
Type | Name and description |
---|---|
Class |
astVisitorClass |
String |
name |
int |
priority |