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

Improvements in domain classes #2

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

Conversation

raulavila
Copy link

Why

volatile modifiers are not required in the domain classes' fields, as they're created by Spring Data and not shared in a multithreaded environment.

JsonProperty annotations can be associated to the field declaration when we want to use the name for that property in the input and output JSONs. This way we have removed duplication of the annotation.

What

  • Removed unnecessary volatile modifiers in domain classes
  • Moved JsonProperty annotations to class fields to avoid duplication in constructor + getter

Removed unnecessary volatile modifiers in domain classes
Moved JsonProperty annotations to class fields to avoid duplication in contructor + getter

Signed-off-by: Josh Hill <[email protected]>
@animatedmax
Copy link

Hey raulavila !

Thanks for submitting this pull request!

All pull request authors must have a Contributor License Agreement (CLA) on-file with us. Please sign the appropriate CLA (individual or corporate).

When sending signed CLA please provide your github username in case of individual CLA or the list of github usernames that can make pull requests on behalf of your organization.

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