Skip to content

Conversation

@YarochkinMichael
Copy link

What's changed?

Joda recipe can perform a safe migration.

What's your motivation?

To execute a fully automated migration

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

Remove of check for unsafeVars

Anyone you would like to review specifically?

@amishra-u @timtebeek

Any additional context

With this change, tests for Scanner are obsolete.
I am not even sure we need ScanningRecipe anymore

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

@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Aug 7, 2025
return original; // unhandled case
}
if (template.getTemplate().getCode().equals(JODA_MULTIPLE_MAPPING_POSSIBLE)) {
System.out.println(JODA_MULTIPLE_MAPPING_POSSIBLE + ": " + original);
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we want to report anything via stdout.

If anything, for such a cases we place some Marker and attach to the source LST element. I am not fully if that's necessary in this specific case, maybe just refrain from making any change? I am not sure.

Copy link
Author

Choose a reason for hiding this comment

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

The idea is to report on missing mapping. It was extremely useful for me during development. And can be used for reporting later.

YarochkinMichael and others added 3 commits August 7, 2025 15:54
@timtebeek
Copy link
Member

Do we still need these changes following this merged PR ?

@YarochkinMichael
Copy link
Author

Do we still need these changes following this merged PR ?

Yes. It is still valid.
This is a different type of change. Here, I don't need safe migration at all.

I don't know if your question is relevant anymore, as you reverted that merge.

@YarochkinMichael
Copy link
Author

Hello
What is still blocking us from merging this PR?

@timtebeek
Copy link
Member

As discussed, we'll continue development in https://github.com/openrewrite/rewrite-joda

Thanks again!

@timtebeek timtebeek closed this Aug 26, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants