Skip to content

REFACTOR: remove helper field BaseBuilder#thisB#2783

Closed
hosuaby wants to merge 1 commit into
OpenFeign:masterfrom
hosuaby:remove/thisB
Closed

REFACTOR: remove helper field BaseBuilder#thisB#2783
hosuaby wants to merge 1 commit into
OpenFeign:masterfrom
hosuaby:remove/thisB

Conversation

@hosuaby

@hosuaby hosuaby commented Feb 23, 2025

Copy link
Copy Markdown
Contributor

In anticipation of conversation #2782

Remove the field BaseBuilder#thisB. This field do not provide any value (appart of avoiding unchecked cast from builder methods), but it mixes badly with Object#clone and creates bugs very difficult to spot.

@velo velo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't see the value of adding 20+ @SuppressWarnings

That was exactly the point of the 'thisB'

Feel free to reopen if you have a different idea without the extra warning suppression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants