Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove DefaultBatchConfigurer #417

Merged
merged 7 commits into from
Aug 15, 2023
Merged

Conversation

timtebeek
Copy link
Contributor

What's changed?

Added a RemoveDefaultBatchConfigurer recipe to help migrate Spring Batch.

What's your motivation?

Fixes #412

Anything in particular you'd like reviewers to focus on?

Any additional cases we should cover?
Should we handle the disabled retainInterfaceOverrides test case?

Any additional context

@timtebeek timtebeek self-assigned this Aug 14, 2023
@timtebeek timtebeek added recipe Recipe requested boot-3.0 labels Aug 14, 2023
@timtebeek timtebeek marked this pull request as ready for review August 14, 2023 16:57
// Strip @Override
md = md.withLeadingAnnotations(ListUtils.map(md.getLeadingAnnotations(),
a -> (TypeUtils.isAssignableTo("java.lang.Override", a.getType())) ? null : a));
md = Markup.info(md, "TODO Used to override a DefaultBatchConfigurer method; reconsider if still needed");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sambsnyd was this the messaging you were looking for in #412 ?

Copy link
Contributor

@knutwannheden knutwannheden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@timtebeek timtebeek merged commit 937bdf9 into main Aug 15, 2023
1 check passed
@timtebeek timtebeek deleted the remove_DefaultBatchConfigurer branch August 15, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
boot-3.0 recipe Recipe requested
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Spring batch migration should remove extends DefaultBatchConfigurer
2 participants