Skip to content

Conversation

crankydillo
Copy link
Contributor

This is a quick reproducer of the problem described in this discussion. Hard to believe this is a rewrite-spring issue, but needed to make something quick. I tried to recreate this in rewrite with inlined test classes, but couldn't quickly do that.

What's your motivation?

I need to finish a recipe that converts chunk(int), which is deprecated, to chunk(int, PlatformTransactionManager).

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

Samuel Cox added 3 commits September 5, 2025 06:38
…hods

This is removed in SpringBoot 5.2 and the 5.0 recipe is already removing
@Autowired fields.

I thought I would have to do something like this for
`JobBuilderFactory`, but its recipe is already doing somethign like
this.  It's a little unclear why there's more testing in this
`StepBuilderFactory` case than there is for `JobBuilderFactory`.

Regardless, this class is removed, and I'm hoping this will solve many
cases for us (and others!).

 openrewrite#779
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Sep 9, 2025
@timtebeek timtebeek self-requested a review September 9, 2025 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant