Simple Intentions bug?
Ran into this last night.
Start with example line:
public static final String badlyNamed_Field = "boo";
Use the "Rename To Code Style" intention and you get:
public static final String BADLY_NAMED___FIELD = "boo";
In short, the original underscore is turned into 3 underscores. I am not sure if that is correct, but I don't think that is what I was looking for. :)
And, the final result does not cause the intention to come up again; though I am not sure if it should.
Please sign in to leave a comment.
hello
Thanks for your comment.
I rely on IDEA for the actual renaming algorithm (propertyNameToVariableName).
The fact that the intention does not complain anymore after the quick fix being applied is correct though (otherwise the quick fix would not have been right).
I'll look into it and see if I can improve the behavior for your specific case.
etienne