Closed timtebeek closed 3 months ago
Weird.
It seems to have lost my comments
I suspect that any lombok annotation is overly broad. Things like @NonNull are useful and don't indicate anything about usage. https://projectlombok.org/features/
I would suggest filtering on @Getter @Setter @Data @Value @Builder @With
And then filter out everything in the experimental package.
https://projectlombok.org/features/experimental/
Thanks for the suggestion! Think that would make a worthwhile addition, but due to time constraints I'm merging as is for now, such that we do no harm in cases where we should not make a change. We can restore more selective changes in a followup PR both here in RenamePrivateFieldsToCamelCase
and in RemoveUnusedPrivateFields
.
Fixes https://github.com/openrewrite/rewrite-static-analysis/issues/267
Mirrors what we do in
RemoveUnusedPrivateFields
https://github.com/openrewrite/rewrite-static-analysis/blob/106421ad4d1db3fe062c8743d042627e07598a8c/src/main/java/org/openrewrite/staticanalysis/RemoveUnusedPrivateFields.java#L42Anyone you would like to review specifically?
@blipper