Rename getter methods to fit Lombok
MSALRename methods that are effectively getter to the name Lombok would give them.
Limitations:
- If two methods in a class are effectively the same getter then one's name will be corrected and the others name will be left as it is.
- If the correct name for a method is already taken by another method then the name will not be corrected.
- Method name swaps or circular renaming within a class cannot be performed because the names block each other.
E.g.
int getFoo() { return ba; } int getBa() { return foo; }stays as it is.
org. openrewrite. java. migrate. lombok. AdoptLombokGetterMethodNamesmod run . --recipe= org. openrewrite. java. migrate. lombok. AdoptLombokGetterMethodNamesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.