File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
src/main/java/org/openrewrite/java/migrate/lombok Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -39,23 +39,19 @@ public class NormalizeGetter extends ScanningRecipe<NormalizeGetter.MethodAcc> {
3939
4040 @ Override
4141 public String getDisplayName () {
42- //language=markdown
4342 return "Rename getter methods to fit lombok" ;
4443 }
4544
4645 @ Override
4746 public String getDescription () {
4847 //language=markdown
49- return new StringJoiner ("\n " )
50- .add ("Rename methods that are effectively getter to the name lombok would give them." )
51- .add ("" )
52- .add ("Limitations:" )
53- .add ("" )
54- .add (" - 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." )
55- .add (" - If the correct name for a method is already taken by another method then the name will not be corrected." )
56- .add (" - Method name swaps or circular renaming within a class cannot be performed because the names block each other. " )
57- .add ("E.g. `int getFoo() { return ba; } int getBa() { return foo; }` stays as it is." )
58- .toString ();
48+ return "Rename methods that are effectively getter to the name lombok would give them.\n \n " +
49+ "Limitations:\n " +
50+ " - 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." +
51+ " - If the correct name for a method is already taken by another method then the name will not be corrected." +
52+ " - Method name swaps or circular renaming within a class cannot be performed because the names block each other. " +
53+ "E.g. `int getFoo() { return ba; } int getBa() { return foo; }` stays as it is."
54+ ;
5955 }
6056
6157 public static class MethodAcc {
You can’t perform that action at this time.
0 commit comments