Skip to content

REFACTOR: remove helper field BaseBuilder#thisB #2783

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

Closed
wants to merge 1 commit into from

Conversation

hosuaby
Copy link
Contributor

@hosuaby hosuaby commented Feb 23, 2025

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.

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.

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.

@velo velo closed this Mar 3, 2025
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