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

refactor: Convert fields to local variables #457

Merged
merged 1 commit into from
Apr 15, 2019

Conversation

fractalwrench
Copy link
Contributor

If a field is not used within a class except for one location, it should be converted to a local variable as this confines it to the smallest possible scope.

@fractalwrench fractalwrench merged commit 18ddda1 into inspection-fixes Apr 15, 2019
@fractalwrench fractalwrench deleted the refactor-field-can-be-local 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