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

Avoid more name clashes for SuperBuilder #2355

Merged

Conversation

janrieke
Copy link
Contributor

@janrieke janrieke commented Feb 6, 2020

Previously, the names of the type parameters of @SuperBuilder are chosen that they do not collide with the type parameters of the annotated class.

With this PR, the classname of the annotated class and the type names of fields in that class are also considered in this collision check.

This fixes #2297.

@rzwitserloot
Copy link
Collaborator

Not sure we really ought to cater to people naming classes B, but, hey. I'll take it, thanks @janrieke!

@rzwitserloot rzwitserloot merged commit 680d63e into projectlombok:master Feb 6, 2020
Febell pushed a commit to Febell/lombok that referenced this pull request Mar 1, 2020
@janrieke janrieke deleted the superBuilderAvoidMoreNameClashes branch December 30, 2020 13:56
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.

[BUG] @SuperBuilder does work on classes named B or C
2 participants