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 inner class static to avoid code smell #3123

Merged

Conversation

MartinWitt
Copy link
Contributor

Repairing Code Style Issues

InnerClassMayBeStatic

Inner classes that do not reference their enclosing instances can be made static.
This prevents a common cause of memory leaks and uses less memory per instance of the class.

Repairing Code Style Issues

  • InnerClassMayBeStatic (1)

- InnerClassMayBeStatic
Inner classes that do not reference their enclosing instances can be made static.
This prevents a common cause of memory leaks and uses less memory per instance of the class.
@marcphilipp marcphilipp added this to the 5.9.2 milestone Jan 3, 2023
@marcphilipp marcphilipp changed the title refactor: refactor bad smell InnerClassMayBeStatic Make inner class static to avoid code smell Jan 3, 2023
@marcphilipp marcphilipp merged commit 7212e5a into junit-team:main Jan 3, 2023
@marcphilipp
Copy link
Member

@MartinWitt Thanks for the PR! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants