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

Make fields final where possible #458

Merged
merged 1 commit into from
Apr 15, 2019

Conversation

fractalwrench
Copy link
Contributor

Marking fields as final guarantees that the reference cannot be modified after initialisation. While it's still possible to mutate any fields on the object itself, this is a good first step towards thread safety, and fields should be final by default.

Marking fields as final guarantees that the reference cannot be modified after initialisation. While
it's still possible to mutate any fields on the object itself, this is a good first step towards
thread safety, and fields should be final by default.
@fractalwrench fractalwrench merged commit 2322c69 into inspection-fixes Apr 15, 2019
@fractalwrench fractalwrench deleted the refactor-final-modifier branch April 15, 2019 09:50
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