You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have a possibility to ignore comments. Maybe with a parameter to configure which comments should be ignored (A regular expression? Predicate<String>?).
The text was updated successfully, but these errors were encountered:
Alternatively, perhaps would-be-removed comments could be prepended to the replacement code. (This will in some cases yield misplaced/misleading/incorrect comments, but it would be handy i.c.w. patch mode.)
Thanks, I agree this is an area that could be improved. The current behaviour is supposed to be a safe default so we don't actually remove worthwhile comments, but I don't have objections to making that configurable, or to having a mode that keeps the comments and moves.
I went looking for the place where the current logic is implemented, and found a relevant TODO :)
I'm using
error_prone_refaster-2.24.1.jar
anderror_prone_core-2.24.1-with-dependencies.jar
to refactor code. Given the following class to refactor:and the following template:
then only the "good" line will be refactored:
It would be nice to have a possibility to ignore comments. Maybe with a parameter to configure which comments should be ignored (A regular expression?
Predicate<String>
?).The text was updated successfully, but these errors were encountered: