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

Update Javadoc for @Data #3649

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sergvasylchak
Copy link

The javadoc on Data.java says it generates a constructor, which is the equivalent of @RequiredArgsConstructor behavior. In reality though, the constructor is only generated if no explicitly defined constructors (including explicit Lombok constructors) already exist. The behavior is expected and documented here.

The javadoc alone, however, often causes confusions, since there is no clear explanation on why the constructor in @Data may or may not be generated, which leads to a need of additional digging in Lombok documentation.

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.

None yet

1 participant