-
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
Apache HttpClient 4 to 5 does not yet migrate StringEntity.setContentEncoding()
to constructor argument
#54
Comments
Do note that we have a recipe step that should make the necessary package change here at least: rewrite-apache/src/main/resources/META-INF/rewrite/apache-httpclient-5.yml Lines 179 to 181 in fbe3eb6
I wonder if there might be any other issues why you're not seeing any changes at all. |
Oh I am sorry, it's always hard not to forget something when extrapolating from the "real" example to what is reported in such a ticket. |
Ah thanks! That narrows this down indeed; looks like that setter argument should be moved to the constructor then? That would likely require a new recipe to remove that method invocation and move the argument into the constructor. |
StringEntity.setContentEncoding()
to constructor argument
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am running the spring boot 3.1 migration via the command line:
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
Note that the fourth constructor parameter (
chunked
) ofStringEntity
is set tofalse
based on the default value that is used by the smaller constructor:What did you see instead?
setContentEncoding is not replaced with setting the value via the constructor.
Are you interested in contributing a fix to OpenRewrite?
No
The text was updated successfully, but these errors were encountered: