-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add explicit Charset
to Apache FileUtils
methods
#36
Comments
@tkvangorder Should this be separate issues per method? I imagine it'll be different recipes per methods but I did not want to create a bunch of similar issues Maybe, we can just create tasks instead? Like
etc |
Charset
to Apache FileUtils
methods
Yeah, I think we can just define tasks in this issue to organize the work. We used the "one recipe per method" in the AssertJ migrations: https://github.com/openrewrite/rewrite-testing-frameworks/tree/main/src/main/java/org/openrewrite/java/testing/assertj I think you could make a reasonable argument to do something similar or to combine similar methods under a single recipe. The "copy/paste/slightly edit recipe/test" can be tedious to maintain when you want to make changes across the suite of recipes. |
@tkvangorder @yeikel for the Apache commons IOUtils task I handled all charset specific deprecations in a single recipe f758efb62aa4dea938841766a81fd1d14d44c321 |
Thank you for sharing. As @tkvangorder mentioned, doing the same for this class will be better |
Examples :
And many others : https://github.com/apache/commons-io/blob/master/src/main/java/org/apache/commons/io/FileUtils.java
Charset should be configurable. Ideally, it should accept :
Similar issue : openrewrite/rewrite-migrate-java#99
See also : openrewrite/rewrite#1724
The text was updated successfully, but these errors were encountered: