Skip to content

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