Open krwq opened 9 years ago
I don't understand what the error is here.
@jaredpar Trailing underscores are removed :smile:
@khellang ah, thanks for pointing that out.
The logic for that part of the rule was to rename one of the other common private field name patterns:
private int field_;
I agree the behavior displayed here is bad, I'm just trying to find a way to rationalize the behavior so the intended case continues to get renamed but the above case does not. Maybe it's as simple as only removing trailing slashes when the field is camel cased.
This happened for this piece of code:
which got converted into:
Once you get a closer look there are name collisions. In this particular change it makes sense to keep the names as they make sense.