Add recipe to migrate System.out.print/println to IO.print/println - #848
Conversation
…o IO.print/println
|
While preparing the PR, I realized we might also want to handle I can look into it and we could add it in a follow-up PR |
|
Great to see thanks! I think we can support that without extra effort if we switch to using MethodMatcher :) |
|
Good point, thanks @timtebeek , I'll update the code. |
|
@timtebeek - I just realized though, that Did I miss anything, or do you see a cleaner way to restrict it just to |
System.out.print/println to IO.print/println
timtebeek
left a comment
There was a problem hiding this comment.
Thanks a lot for the help here @e5LA ! I've added a few small changes, mostly to reduce duplication, support edge cases, improve performance and remove unused imports past migration. It's also now included in the Java 25 migration going forward. 🎉
|
Thanks for the improvements @timtebeek ! Always great to see yours solutions. |
What's changed?
Added recipe to migrate
System.out.print()andSystem.out.println()toIO.print()andIO.println()What's your motivation?
Closes #846.
Checklist