Skip to content
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

Feature/replace deprecated body #959

Merged
merged 4 commits into from
May 9, 2019

Conversation

mstrYoda
Copy link
Contributor

@mstrYoda mstrYoda commented May 8, 2019

In this pr the old body() method calls replaced with requestBody().asBytes() method which both exists in Request class. The intention is to remove deprecated code and keep source code clean.

Copy link
Member

@velo velo left a comment

Choose a reason for hiding this comment

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

Overall change is good.

Just unsure if should remove deprecated method

* @see #charset()
* @deprecated use {@link #requestBody()} instead
*/
public byte[] body() {
Copy link
Member

Choose a reason for hiding this comment

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

I don't recall when we deprecated this.

If was on 9.x think is ok to drop it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If deprecated method is completely removed from usage, is not that ok to remove the method itself? I think removing it prevents further usage. Should I keep it or remove it?

Copy link
Member

Choose a reason for hiding this comment

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

A decoder may exists out there that still uses it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see.. Sorry I am not fully familiar on source code. I'll put it back.

Just a question out of this context, is it acceptable to use a 3rd party library (like apache commons lang) for some requirement?

Copy link
Member

Choose a reason for hiding this comment

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

core has being clean from external dependencies and we are most likely to want to keep it that way.

Particularly about apache commons-*, every time I see them I read "old deprecated code that somehow still survived" =)

@kdavisk6 kdavisk6 added chore For issues related to technical debt and other non-functional tasks ready to merge Will be merged if no other member ask for changes labels May 9, 2019
@kdavisk6
Copy link
Member

kdavisk6 commented May 9, 2019

@mstrYoda

And one more small housekeeping note, can you please update the description of this PR with the following format:

A short description of the change, your intention, and what you are trying to solve.

Fixes [issue number]

This helps us keep track of what issue the PR is for and provides us with background on your thinking and the intended outcome of this change.

@mstrYoda
Copy link
Contributor Author

mstrYoda commented May 9, 2019

@mstrYoda

And one more small housekeeping note, can you please update the description of this PR with the following format:

A short description of the change, your intention, and what you are trying to solve.

Fixes [issue number]

This helps us keep track of what issue the PR is for and provides us with background on your thinking and the intended outcome of this change.

I updated description.

@kdavisk6 kdavisk6 merged commit d1199f6 into OpenFeign:master May 9, 2019
@kdavisk6
Copy link
Member

kdavisk6 commented May 9, 2019

@mstrYoda

Thanks for your contribution!

@kdavisk6 kdavisk6 added this to the 10.2.1 milestone May 9, 2019
@kdavisk6 kdavisk6 removed the ready to merge Will be merged if no other member ask for changes label May 11, 2019
velo pushed a commit to velo/feign that referenced this pull request Jun 30, 2019
In this pr the old `body()` method calls replaced with `requestBody().asBytes()` method which both exists in Request class. The intention is to remove deprecated code and keep source code clean.

Related to OpenFeign#857 

* replaced old body with new Body.asBytes()
velo pushed a commit that referenced this pull request Oct 7, 2024
In this pr the old `body()` method calls replaced with `requestBody().asBytes()` method which both exists in Request class. The intention is to remove deprecated code and keep source code clean.

Related to #857 

* replaced old body with new Body.asBytes()
velo pushed a commit that referenced this pull request Oct 8, 2024
In this pr the old `body()` method calls replaced with `requestBody().asBytes()` method which both exists in Request class. The intention is to remove deprecated code and keep source code clean.

Related to #857 

* replaced old body with new Body.asBytes()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore For issues related to technical debt and other non-functional tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants